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 org.flowable.idm.api.IdmIdentityService
protected Duration
protected long
protected SecureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentTokenServiceImpl
(org.flowable.idm.api.IdmIdentityService idmIdentityService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.flowable.idm.api.Token
createToken
(String userId, String remoteAddress, String userAgent) void
delete
(org.flowable.idm.api.Token token) long
org.flowable.idm.api.Token
org.flowable.idm.api.Token
invalidateCacheEntryAndGetToken
(String tokenId, boolean invalidateCacheEntry) protected org.flowable.idm.api.Token
loadTokenFromDb
(String tokenId) void
void
setMaxUserSize
(long maxUserSize)
-
Field Details
-
random
-
idmIdentityService
protected final org.flowable.idm.api.IdmIdentityService idmIdentityService -
maxUserSize
protected long maxUserSize -
maxAge
-
-
Constructor Details
-
PersistentTokenServiceImpl
public PersistentTokenServiceImpl(org.flowable.idm.api.IdmIdentityService idmIdentityService)
-
-
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 org.flowable.idm.api.Token invalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry) - Specified by:
invalidateCacheEntryAndGetToken
in interfacePersistentTokenService
-
createToken
public org.flowable.idm.api.Token createToken(String userId, String remoteAddress, String userAgent) - Specified by:
createToken
in interfacePersistentTokenService
-
getMaxUserSize
public long getMaxUserSize() -
setMaxUserSize
public void setMaxUserSize(long maxUserSize) -
getMaxAge
-
setMaxAge
-