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 voidaddCacheEntry(Principal principal, Map<String,Object> map)Add a cache entrybooleancacheHit(Principal principal)Cache Entry present?voidcacheOperation(Principal principal, Map<String,Object> map)Perform a cache operation<Y> Yget(Principal key)Get Cache Entry
-
-
-
Method Detail
-
addCacheEntry
public void addCacheEntry(Principal principal, Map<String,Object> map) throws SecurityCacheException
Description copied from interface:SecurityCacheAdd a cache entry- Specified by:
addCacheEntryin interfaceSecurityCache<Principal>map- a contextual map- Throws:
SecurityCacheException- See Also:
SecurityCache.addCacheEntry(Object, Map)
-
cacheHit
public boolean cacheHit(Principal principal)
Description copied from interface:SecurityCacheCache Entry present?- Specified by:
cacheHitin 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:SecurityCachePerform a cache operation- Specified by:
cacheOperationin 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:SecurityCacheGet Cache Entry- Specified by:
getin interfaceSecurityCache<Principal>- Returns:
- Cache Entry
- Throws:
SecurityCacheException- See Also:
SecurityCache.get(Object)
-
-