|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.ws.security.tokenstore.EHCacheTokenStore
public class EHCacheTokenStore
An in-memory EHCache implementation of the TokenStore interface. The default TTL is 60 minutes and the max TTL is 12 hours.
| Field Summary | |
|---|---|
static long |
DEFAULT_TTL
|
static long |
MAX_TTL
|
| Constructor Summary | |
|---|---|
EHCacheTokenStore(String key,
Bus b,
URL configFileURL)
|
|
| Method Summary | |
|---|---|
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()
|
Collection<SecurityToken> |
getExpiredTokens()
Return the list of expired tokens. |
SecurityToken |
getToken(String identifier)
Returns the Token of the given identifier |
Collection<String> |
getTokenIdentifiers()
Return the list of all valid token identifiers. |
long |
getTTL()
Get the (default) TTL value in seconds |
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 |
void |
setTTL(long newTtl)
Set a new (default) TTL value in seconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_TTL
public static final long MAX_TTL
| Constructor Detail |
|---|
public EHCacheTokenStore(String key,
Bus b,
URL configFileURL)
| Method Detail |
|---|
public void setTTL(long newTtl)
newTtl - a new (default) TTL value in secondspublic long getTTL()
public void add(SecurityToken token)
TokenStore
add in interface TokenStoretoken - The token to be added
public void add(String identifier,
SecurityToken token)
TokenStore
add in interface TokenStoreidentifier - The identifier to use to key the SecurityToken in the cachetoken - The token to be addedpublic void remove(String identifier)
TokenStore
remove in interface TokenStorepublic Collection<String> getTokenIdentifiers()
TokenStore
getTokenIdentifiers in interface TokenStorepublic Collection<SecurityToken> getExpiredTokens()
TokenStore
getExpiredTokens in interface TokenStoreTokenspublic SecurityToken getToken(String identifier)
TokenStoreToken of the given identifier
getToken in interface TokenStoreToken identified by the given identifierpublic void close()
close in interface Closeablepublic 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 BusLifeCycleListener
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||