Interface SwitchableTokenManager
- All Superinterfaces:
SessionTokenStorage,TokenManager
- All Known Implementing Classes:
SwitchableTokenManagerImpl
Extends
TokenManager to allow switching between two TokenDAO delegates (in-memory and database).- Since:
- v2.7
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetUsingDatabaseStorage(boolean useDatabaseStorage) voidUpdates the switchable token manager to match the current configuration.Methods inherited from interface com.atlassian.crowd.dao.token.SessionTokenStorage
add, findByIdentifierHash, findByRandomHash, remove, remove, removeAll, removeAll, removeExcept, removeExpiredTokens, update
-
Method Details
-
isUsingDatabaseStorage
boolean isUsingDatabaseStorage() -
setUsingDatabaseStorage
- Throws:
PropertyManagerException
-
updateTokenStorage
void updateTokenStorage()Updates the switchable token manager to match the current configuration. This method must be called when the configuration has been changed externally (i.e., not throughsetUsingDatabaseStorage(boolean)), for instance, after a backup restore.
-