public interface TokenStore
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
|
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
|
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()
SecurityToken getToken(String identifier)
Token
of the given identifieridentifier
- Token
identified by the given identifierCopyright © 2017 JBoss by Red Hat. All rights reserved.