Browse Source

Deprecate EhCache2 support

Since EhCache 3 is fully JSR-107 compliant, we should remove EhCache2 support and provide JCache implementations

Closes gh-10362
pull/10373/head
Marcus Da Coregio 4 years ago
parent
commit
7fa39c8807
  1. 2
      acl/src/main/java/org/springframework/security/acls/domain/EhCacheBasedAclCache.java
  2. 2
      cas/src/main/java/org/springframework/security/cas/authentication/EhCacheBasedTicketCache.java
  3. 2
      core/src/main/java/org/springframework/security/core/userdetails/cache/EhCacheBasedUserCache.java

2
acl/src/main/java/org/springframework/security/acls/domain/EhCacheBasedAclCache.java

@ -37,7 +37,9 @@ import org.springframework.util.Assert; @@ -37,7 +37,9 @@ import org.springframework.util.Assert;
* {@link PermissionGrantingStrategy} and {@link AclAuthorizationStrategy} instances.
*
* @author Ben Alex
* @deprecated since 5.6. In favor of JCache based implementations
*/
@Deprecated
public class EhCacheBasedAclCache implements AclCache {
private final Ehcache cache;

2
cas/src/main/java/org/springframework/security/cas/authentication/EhCacheBasedTicketCache.java

@ -30,7 +30,9 @@ import org.springframework.util.Assert; @@ -30,7 +30,9 @@ import org.springframework.util.Assert;
* <a href="https://www.ehcache.org/">EHCACHE</a>.
*
* @author Ben Alex
* @deprecated since 5.6. In favor of JCache based implementations
*/
@Deprecated
public class EhCacheBasedTicketCache implements StatelessTicketCache, InitializingBean {
private static final Log logger = LogFactory.getLog(EhCacheBasedTicketCache.class);

2
core/src/main/java/org/springframework/security/core/userdetails/cache/EhCacheBasedUserCache.java vendored

@ -32,7 +32,9 @@ import org.springframework.util.Assert; @@ -32,7 +32,9 @@ import org.springframework.util.Assert;
* <A HREF="https://www.ehcache.org/">EHCACHE</a>.
*
* @author Ben Alex
* @deprecated since 5.6. In favor of JCache based implementations
*/
@Deprecated
public class EhCacheBasedUserCache implements UserCache, InitializingBean {
private static final Log logger = LogFactory.getLog(EhCacheBasedUserCache.class);

Loading…
Cancel
Save