Package org.jboss.security.cache
Class JBossAuthenticationCache
- java.lang.Object
-
- org.jboss.security.cache.JBossAuthenticationCache
-
- All Implemented Interfaces:
SecurityCache<Principal>
public class JBossAuthenticationCache extends Object implements SecurityCache<Principal>
Authentication Cache keyed in by Principal- Since:
- May 13, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
-
-
Constructor Summary
Constructors Constructor Description JBossAuthenticationCache()
JBossAuthenticationCache(int initCapacity, float loadFactor, int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCacheEntry(Principal principal, Map<String,Object> map)
Add a cache entryboolean
cacheHit(Principal principal)
Cache Entry present?void
cacheOperation(Principal principal, Map<String,Object> map)
Perform a cache operation<Y> Y
get(Principal key)
Get Cache Entry
-
-
-
Method Detail
-
addCacheEntry
public void addCacheEntry(Principal principal, Map<String,Object> map) throws SecurityCacheException
Description copied from interface:SecurityCache
Add a cache entry- Specified by:
addCacheEntry
in interfaceSecurityCache<Principal>
map
- a contextual map- Throws:
SecurityCacheException
- See Also:
SecurityCache.addCacheEntry(Object, Map)
-
cacheHit
public boolean cacheHit(Principal principal)
Description copied from interface:SecurityCache
Cache Entry present?- Specified by:
cacheHit
in interfaceSecurityCache<Principal>
- Parameters:
principal
- Key for the cache entry- Returns:
- true- cache entry exists, false-otherwise
- See Also:
SecurityCache.cacheHit(Object)
-
cacheOperation
public void cacheOperation(Principal principal, Map<String,Object> map) throws SecurityCacheException
Description copied from interface:SecurityCache
Perform a cache operation- Specified by:
cacheOperation
in interfaceSecurityCache<Principal>
- Parameters:
principal
- Key for the cache entrymap
- A contextual map- Throws:
SecurityCacheException
- See Also:
SecurityCache.cacheOperation(Object, Map)
-
get
public <Y> Y get(Principal key) throws SecurityCacheException
Description copied from interface:SecurityCache
Get Cache Entry- Specified by:
get
in interfaceSecurityCache<Principal>
- Returns:
- Cache Entry
- Throws:
SecurityCacheException
- See Also:
SecurityCache.get(Object)
-
-