public class EHCacheTokenStore extends Object implements TokenStore, Closeable, org.apache.cxf.buslifecycle.BusLifeCycleListener
| Constructor and Description |
|---|
EHCacheTokenStore(String key,
org.apache.cxf.Bus b,
URL configFileURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SecurityToken token)
Add the given token to the cache.
|
void |
add(String identifier,
SecurityToken token)
Add the given token to the cache under the given identifier
|
void |
close() |
SecurityToken |
getToken(String identifier)
Returns the
Token of the given identifier |
Collection<String> |
getTokenIdentifiers()
Return the list of all valid token identifiers.
|
void |
initComplete() |
void |
postShutdown() |
void |
preShutdown() |
void |
remove(String identifier)
Remove an existing token by its identifier
|
public EHCacheTokenStore(String key, org.apache.cxf.Bus b, URL configFileURL) throws TokenStoreException
TokenStoreExceptionpublic void add(SecurityToken token)
TokenStoreadd in interface TokenStoretoken - The token to be addedpublic void add(String identifier, SecurityToken token)
TokenStoreadd in interface TokenStoreidentifier - The identifier to use to key the SecurityToken in the cachetoken - The token to be addedpublic void remove(String identifier)
TokenStoreremove in interface TokenStorepublic Collection<String> getTokenIdentifiers()
TokenStoregetTokenIdentifiers in interface TokenStorepublic SecurityToken getToken(String identifier)
TokenStoreToken of the given identifiergetToken in interface TokenStoreToken identified by the given identifierpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void initComplete()
initComplete in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerpublic void preShutdown()
preShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerpublic void postShutdown()
postShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerApache CXF