public interface TokenStorage
| Modifier and Type | Field and Description |
|---|---|
static String |
TOKEN_STORAGE_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Token token)
Add the given token to the list.
|
Token[] |
getCancelledTokens()
Return the list of CANCELLED tokens
|
Token[] |
getExpiredTokens()
Return the list of
EXPIRED tokens. |
Token[] |
getRenewedTokens()
Return the list of RENEWED tokens.
|
Token |
getToken(String id)
Returns the
Token of the given id |
String[] |
getTokenIdentifiers()
Return the list of all token identifiers.
|
Token[] |
getValidTokens()
Return the list of ISSUED and RENEWED tokens.
|
void |
removeToken(String id)
Removes the given token from token storage.
|
void |
update(Token token)
Update an existing token.
|
static final String TOKEN_STORAGE_KEY
void add(Token token) throws TrustException
token - The token to be addedTrustExceptionvoid update(Token token) throws TrustException
token - TrustExceptionString[] getTokenIdentifiers() throws TrustException
TrustExceptionToken[] getExpiredTokens() throws TrustException
EXPIRED tokens.
If there are no EXPIRED tokens null will be
returnedTokensTrustExceptionToken[] getValidTokens() throws TrustException
Tokens.TrustExceptionToken[] getRenewedTokens() throws TrustException
TokensTrustExceptionToken[] getCancelledTokens() throws TrustException
TokensTrustExceptionToken getToken(String id) throws TrustException
Token of the given idid - Token identified by the give idTrustExceptionvoid removeToken(String id)
id - Token id to remove.Copyright © Apache Software Foundation. All Rights Reserved.