Package org.jboss.security.cache
Interface SecurityCache<T>
-
- All Known Implementing Classes:
JBossAuthenticationCache
public interface SecurityCache<T>
Generic Security Cache Interface for usage by the security integration layers like authentication, authorization etc.- Since:
- May 13, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCacheEntry(T key, Map<String,Object> contextMap)
Add a cache entryboolean
cacheHit(T key)
Cache Entry present?void
cacheOperation(T key, Map<String,Object> contextMap)
Perform a cache operation<Y> Y
get(T key)
Get Cache Entry
-
-
-
Method Detail
-
addCacheEntry
void addCacheEntry(T key, Map<String,Object> contextMap) throws SecurityCacheException
Add a cache entry- Parameters:
key
-contextMap
- a contextual map- Throws:
SecurityCacheException
-
cacheHit
boolean cacheHit(T key)
Cache Entry present?- Parameters:
key
- Key for the cache entry- Returns:
- true- cache entry exists, false-otherwise
-
cacheOperation
void cacheOperation(T key, Map<String,Object> contextMap) throws SecurityCacheException
Perform a cache operation- Parameters:
key
- Key for the cache entrycontextMap
- A contextual map- Throws:
SecurityCacheException
-
get
<Y> Y get(T key) throws SecurityCacheException
Get Cache Entry- Type Parameters:
Y
-- Parameters:
T
- key- Returns:
- Cache Entry
- Throws:
SecurityCacheException
-
-