|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenStore
This interface defines a caching mechanism for security tokens. It is up to the underlying implementation to handle token expiration (e.g. by querying the SecurityToken's expires date).
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 identifier)
Returns the Token of the given identifier |
Collection<String> |
getTokenIdentifiers()
Return the list of all valid token identifiers. |
void |
remove(String identifier)
Remove an existing token by its identifier |
Method Detail |
---|
void add(SecurityToken token)
token
- The token to be addedvoid add(String identifier, SecurityToken token)
identifier
- The identifier to use to key the SecurityToken in the cachetoken
- The token to be addedvoid remove(String identifier)
Collection<String> getTokenIdentifiers()
Collection<SecurityToken> getExpiredTokens()
Tokens
SecurityToken getToken(String identifier)
Token
of the given identifier
identifier
-
Token
identified by the given identifier
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |