Class PlainTokenService<T extends Token,K>
java.lang.Object
org.exoplatform.web.security.security.AbstractTokenService<T,K>
org.exoplatform.web.security.security.PlainTokenService<T,K>
- All Implemented Interfaces:
TokenStore,org.picocontainer.Startable
- Direct Known Subclasses:
TransientTokenService
An abstraction layer adding
getAllTokens(). It was necessary to create this because getAllTokens() needed
to be removed from CookieTokenService as it has no significance when the tokens are salt-hashed.- Author:
- Peter Palaga
-
Field Summary
Fields inherited from class org.exoplatform.web.security.security.AbstractTokenService
CLEANUP_PERIOD_TIME, DEFAULT_TOKEN_BYTE_LENGTH, delay_time, log, name, SERVICE_CONFIG, tokenByteLength, validityMillis -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.exoplatform.web.security.security.AbstractTokenService
decodeKey, deleteToken, deleteToken, getInstance, getName, getPeriodTime, getToken, getToken, getValidityTime, nextRandom, nextTokenId, size, start, stop, validateTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.web.security.TokenStore
createToken
-
Constructor Details
-
PlainTokenService
public PlainTokenService(org.exoplatform.container.xml.InitParams initParams) throws TokenServiceInitializationException - Parameters:
initParams-- Throws:
TokenServiceInitializationException
-
-
Method Details
-
cleanExpiredTokens
public void cleanExpiredTokens()- Specified by:
cleanExpiredTokensin classAbstractTokenService<T extends Token,K>
-
getAllTokens
-