Skip to content

Commit 7fa39c8

Browse files
Deprecate EhCache2 support
Since EhCache 3 is fully JSR-107 compliant, we should remove EhCache2 support and provide JCache implementations Closes gh-10362
1 parent 64e9ac9 commit 7fa39c8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
* {@link PermissionGrantingStrategy} and {@link AclAuthorizationStrategy} instances.
3838
*
3939
* @author Ben Alex
40+
* @deprecated since 5.6. In favor of JCache based implementations
4041
*/
42+
@Deprecated
4143
public class EhCacheBasedAclCache implements AclCache {
4244

4345
private final Ehcache cache;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
* <a href="https://www.ehcache.org/">EHCACHE</a>.
3131
*
3232
* @author Ben Alex
33+
* @deprecated since 5.6. In favor of JCache based implementations
3334
*/
35+
@Deprecated
3436
public class EhCacheBasedTicketCache implements StatelessTicketCache, InitializingBean {
3537

3638
private static final Log logger = LogFactory.getLog(EhCacheBasedTicketCache.class);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
* <A HREF="https://www.ehcache.org/">EHCACHE</a>.
3333
*
3434
* @author Ben Alex
35+
* @deprecated since 5.6. In favor of JCache based implementations
3536
*/
37+
@Deprecated
3638
public class EhCacheBasedUserCache implements UserCache, InitializingBean {
3739

3840
private static final Log logger = LogFactory.getLog(EhCacheBasedUserCache.class);

0 commit comments

Comments
 (0)