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 addedTrustException
void update(Token token) throws TrustException
token
- TrustException
String[] getTokenIdentifiers() throws TrustException
TrustException
Token[] getExpiredTokens() throws TrustException
EXPIRED
tokens.
If there are no EXPIRED
tokens null
will be
returnedTokens
TrustException
Token[] getValidTokens() throws TrustException
Tokens
.TrustException
Token[] getRenewedTokens() throws TrustException
Tokens
TrustException
Token[] getCancelledTokens() throws TrustException
Tokens
TrustException
Token getToken(String id) throws TrustException
Token
of the given idid
- Token
identified by the give idTrustException
void removeToken(String id)
id
- Token id to remove.Copyright © Apache Software Foundation. All Rights Reserved.