Package org.flowable.ui.common.security
Class BasePersistentTokenService
- java.lang.Object
-
- org.flowable.ui.common.security.BasePersistentTokenService
-
- All Implemented Interfaces:
PersistentTokenService,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
IdmEnginePersistentTokenService,RemoteIdmPersistentTokenService
public abstract class BasePersistentTokenService extends Object implements PersistentTokenService, org.springframework.beans.factory.InitializingBean
- Author:
- Joram Barrez, Tijs Rademakers, Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerloggerprotected DurationmaxAgeprotected longmaxUserSizeprotected SecureRandomrandom
-
Constructor Summary
Constructors Constructor Description BasePersistentTokenService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddelete(Token token)protected StringgenerateRandom(int size)protected StringgenerateRandomWithoutSlash(int size)protected StringgenerateSeriesData()protected StringgenerateTokenData()DurationgetMaxAge()longgetMaxUserSize()TokengetToken(String tokenId)TokeninvalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry)protected abstract TokenloadToken(String tokenId)voidsetMaxAge(Duration maxAge)voidsetMaxUserSize(long maxUserSize)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.ui.common.security.PersistentTokenService
createToken
-
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
random
protected SecureRandom random
-
maxUserSize
protected long maxUserSize
-
maxAge
protected Duration maxAge
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
delete
public void delete(Token token)
- Specified by:
deletein interfacePersistentTokenService
-
getToken
@Transactional(readOnly=true) public Token getToken(String tokenId)
- Specified by:
getTokenin interfacePersistentTokenService
-
invalidateCacheEntryAndGetToken
@Transactional(readOnly=true) public Token invalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry)
- Specified by:
invalidateCacheEntryAndGetTokenin interfacePersistentTokenService
-
generateSeriesData
protected String generateSeriesData()
-
generateTokenData
protected String generateTokenData()
-
generateRandomWithoutSlash
protected String generateRandomWithoutSlash(int size)
-
generateRandom
protected String generateRandom(int size)
-
getMaxUserSize
public long getMaxUserSize()
-
setMaxUserSize
public void setMaxUserSize(long maxUserSize)
-
getMaxAge
public Duration getMaxAge()
-
setMaxAge
public void setMaxAge(Duration maxAge)
-
-