|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.ws.security.tokenstore.MemoryTokenStore
public class MemoryTokenStore
A simple HashMap-based TokenStore. The default TTL is 5 minutes and the max TTL is 1 hour.
Field Summary | |
---|---|
static long |
DEFAULT_TTL
|
static long |
MAX_TTL
|
Constructor Summary | |
---|---|
MemoryTokenStore()
|
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 |
Collection<SecurityToken> |
getExpiredTokens()
Return the list of expired tokens. |
SecurityToken |
getToken(String id)
Returns the Token of the given identifier |
Collection<String> |
getTokenIdentifiers()
Return the list of all valid token identifiers. |
protected void |
processTokenExpiry()
|
void |
remove(String identifier)
Remove an existing token by its identifier |
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 MemoryTokenStore()
Method Detail |
---|
public void add(SecurityToken token)
TokenStore
add
in interface TokenStore
token
- The token to be addedpublic void add(String identifier, SecurityToken token)
TokenStore
add
in interface TokenStore
identifier
- The identifier to use to key the SecurityToken in the cachetoken
- The token to be addedpublic void remove(String identifier)
TokenStore
remove
in interface TokenStore
public Collection<String> getTokenIdentifiers()
TokenStore
getTokenIdentifiers
in interface TokenStore
public Collection<SecurityToken> getExpiredTokens()
TokenStore
getExpiredTokens
in interface TokenStore
Tokens
public SecurityToken getToken(String id)
TokenStore
Token
of the given identifier
getToken
in interface TokenStore
Token
identified by the given identifierprotected void processTokenExpiry()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |