public class EHCacheTokenStore extends Object implements TokenStore, Closeable, BusLifeCycleListener
| Constructor and Description |
|---|
EHCacheTokenStore(String key,
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()
Invoked when the
Bus has been initialized. |
void |
postShutdown()
Invoked after the
Bus is shutdown. |
void |
preShutdown()
Invoked before the
Bus is shutdown. |
void |
remove(String identifier)
Remove an existing token by its identifier
|
public EHCacheTokenStore(String key, 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()
BusLifeCycleListenerBus has been initialized.initComplete in interface BusLifeCycleListenerpublic void preShutdown()
BusLifeCycleListenerBus is shutdown.preShutdown in interface BusLifeCycleListenerpublic void postShutdown()
BusLifeCycleListenerBus is shutdown.postShutdown in interface BusLifeCycleListenerApache CXF