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
Modifier and TypeFieldDescriptionprotected final IdmIdentityService
protected Duration
protected long
protected SecureRandom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createToken
(String userId, String remoteAddress, String userAgent) void
long
invalidateCacheEntryAndGetToken
(String tokenId, boolean invalidateCacheEntry) protected Token
loadTokenFromDb
(String tokenId) void
void
setMaxUserSize
(long maxUserSize)
-
Field Details
-
random
-
idmIdentityService
-
maxUserSize
protected long maxUserSize -
maxAge
-
-
Constructor Details
-
PersistentTokenServiceImpl
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
loadTokenFromDb
-
delete
- Specified by:
delete
in interfacePersistentTokenService
-
getToken
- Specified by:
getToken
in interfacePersistentTokenService
-
invalidateCacheEntryAndGetToken
@Transactional(readOnly=true) public Token invalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry) - Specified by:
invalidateCacheEntryAndGetToken
in interfacePersistentTokenService
-
createToken
- Specified by:
createToken
in interfacePersistentTokenService
-
getMaxUserSize
public long getMaxUserSize() -
setMaxUserSize
public void setMaxUserSize(long maxUserSize) -
getMaxAge
-
setMaxAge
-