org.jboss.security.cache
Interface SecurityCache<T>


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
 void addCacheEntry(T key, Map<String,Object> contextMap)
          Add a cache entry
 boolean 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 entry
contextMap - 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


Copyright © 2009 JBoss Inc.. All Rights Reserved.