I'm using Spring Security ACL and it needs to have cache defined. So far I was using this:
@Bean(name = { "defaultAclCache", "aclCache" })
protected AclCache defaultAclCache() {
return new SpringCacheBasedAclCache(defaultAclJCacheFactory(), defaultPermissionGrantingStrategy(), defaultAclAuthorizationStrategy());
}
and it all worked fine. However, I switched to use jcache
and now defaultAclJCacheFactory()
returns an instance of javax.cache.Cache
which is incompatible with the SpringCacheBasedAclCache
:
@Bean(name = { "defaultAclJCacheFactory", "aclJCacheFactory" })
protected Cache defaultAclJCacheFactory() {
return cacheManager.getCache("acl_cache");
}
I tried to search for a JCache
implementation of org.springframework.security.acls.model.AclCache
but there's only this one for spring cache and one for EhCache. Is there any plans to introduce one for jcache
?