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.IdmIdentityServiceprotected Durationprotected longprotected SecureRandom -
Constructor Summary
ConstructorsConstructorDescriptionPersistentTokenServiceImpl(org.flowable.idm.api.IdmIdentityService idmIdentityService) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.flowable.idm.api.TokencreateToken(String userId, String remoteAddress, String userAgent) voiddelete(org.flowable.idm.api.Token token) longorg.flowable.idm.api.Tokenorg.flowable.idm.api.TokeninvalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry) protected org.flowable.idm.api.TokenloadTokenFromDb(String tokenId) voidvoidsetMaxUserSize(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:
afterPropertiesSetin interfaceInitializingBean
-
loadTokenFromDb
-
delete
- Specified by:
deletein interfacePersistentTokenService
-
getToken
- Specified by:
getTokenin interfacePersistentTokenService
-
invalidateCacheEntryAndGetToken
@Transactional(readOnly=true) public org.flowable.idm.api.Token invalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry) - Specified by:
invalidateCacheEntryAndGetTokenin interfacePersistentTokenService
-
createToken
public org.flowable.idm.api.Token createToken(String userId, String remoteAddress, String userAgent) - Specified by:
createTokenin interfacePersistentTokenService
-
getMaxUserSize
public long getMaxUserSize() -
setMaxUserSize
public void setMaxUserSize(long maxUserSize) -
getMaxAge
-
setMaxAge
-