Class PersistentTokenServiceImpl
java.lang.Object
com.flowable.core.spring.security.token.PersistentTokenServiceImpl
- All Implemented Interfaces:
PersistentTokenService,InitializingBean
public class PersistentTokenServiceImpl
extends Object
implements PersistentTokenService, InitializingBean
- Author:
- Joram Barrez, Tijs Rademakers, Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IdmIdentityServiceprotected Durationprotected longprotected SecureRandom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateToken(String userId, String remoteAddress, String userAgent) voidlonginvalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry) protected TokenloadTokenFromDb(String tokenId) voidvoidsetMaxUserSize(long maxUserSize)
-
Field Details
-
random
-
idmIdentityService
-
maxUserSize
protected long maxUserSize -
maxAge
-
-
Constructor Details
-
PersistentTokenServiceImpl
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
loadTokenFromDb
-
delete
- Specified by:
deletein interfacePersistentTokenService
-
getToken
- Specified by:
getTokenin interfacePersistentTokenService
-
invalidateCacheEntryAndGetToken
@Transactional(readOnly=true) public Token invalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry) - Specified by:
invalidateCacheEntryAndGetTokenin interfacePersistentTokenService
-
createToken
- Specified by:
createTokenin interfacePersistentTokenService
-
getMaxUserSize
public long getMaxUserSize() -
setMaxUserSize
public void setMaxUserSize(long maxUserSize) -
getMaxAge
-
setMaxAge
-