This content has been marked as final.
Show 4 replies
-
1. Re: Problems with custom CachePolicy
juha Nov 1, 2003 7:50 AM (in response to cenos)What version are you using? I can't find that specific snippet in 3.2.2 source base on JaasSecurityManager. It relies on specific implementation to only retrieve default timeout.
-- Juha -
2. Re: Problems with custom CachePolicy
cenos Nov 1, 2003 4:44 PM (in response to cenos)I'm using 3.2.1...
from JaasSecurityManagerService.java:
public List getAuthenticationCachePrincipals(String securityDomain)
{
CachePolicy cache = getCachePolicy(securityDomain);
List validPrincipals = null;
if( cache instanceof TimedCachePolicy )
{
TimedCachePolicy tcache = (TimedCachePolicy) cache;
validPrincipals = tcache.getValidKeys();
}
return validPrincipals;
} -
3. Re: Problems with custom CachePolicy
juha Nov 2, 2003 2:54 PM (in response to cenos)I guess you're forced to extend and override TimedCachePolicy then, rather than implementing CachePolicy directly.
-- Juha -
4. Re: Problems with custom CachePolicy
cenos Nov 2, 2003 7:00 PM (in response to cenos)Thanks. I will try that... ;-)