public interface TokenPersister extends Runnable
| Modifier and Type | Field and Description |
|---|---|
static String |
TOKEN_PERSISTER_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteToken(String tokenId)
Remove the token, given the token id.
|
boolean |
isTokenExist(String tokenID)
Check whether a particular token exists in persistence storage given the token id.
|
boolean |
isTokensExist()
To check whether any retired tokens are persisted, before performing any operations to
manipulate tokens.
|
void |
notifyPersistence()
Notify the persister when persistence needs to happen.
|
void |
persistToken(Token token)
Persist a single token
|
void |
persistTokens(Token[] retiredTokens)
Persist an array of tokens
|
Token |
retrieveToken(String tokenId)
Read a token given it's id.
|
String[] |
retrieveTokenIDs()
Obtain the list of token IDs in persistence.
|
Token[] |
retrieveTokens()
Read all the persisted tokens.
|
void |
setConfiguration(AbstractIssuerConfig config)
Pass persister configuration to be set in the persister implementation.
|
void |
setMessageContext(org.apache.axis2.context.MessageContext msgContext)
Set message context in order to get access to message/config context properties.
|
void |
updateToken(Token token)
Update the given token in persistence.
|
static final String TOKEN_PERSISTER_KEY
boolean isTokensExist()
boolean isTokenExist(String tokenID)
tokenID - void persistTokens(Token[] retiredTokens) throws TrustException
retiredTokens - array of security tokensTrustExceptionvoid persistToken(Token token) throws TrustException
token - TrustExceptionToken[] retrieveTokens()
Token retrieveToken(String tokenId) throws TrustException
tokenId - TrustExceptionString[] retrieveTokenIDs()
void updateToken(Token token) throws TrustException
token - TrustExceptionvoid deleteToken(String tokenId) throws TrustException
tokenId - TrustExceptionvoid setConfiguration(AbstractIssuerConfig config) throws TrustException
config - TrustExceptionvoid setMessageContext(org.apache.axis2.context.MessageContext msgContext)
msgContext - void notifyPersistence()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.