public class PersistentTokenServiceImpl extends Object implements PersistentTokenService, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected org.flowable.idm.api.IdmIdentityService |
idmIdentityService |
protected Duration |
maxAge |
protected long |
maxUserSize |
protected SecureRandom |
random |
Constructor and Description |
---|
PersistentTokenServiceImpl(org.flowable.idm.api.IdmIdentityService idmIdentityService) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.flowable.idm.api.Token |
createToken(String userId,
String remoteAddress,
String userAgent) |
void |
delete(org.flowable.idm.api.Token token) |
Duration |
getMaxAge() |
long |
getMaxUserSize() |
org.flowable.idm.api.Token |
getToken(String tokenId) |
org.flowable.idm.api.Token |
invalidateCacheEntryAndGetToken(String tokenId,
boolean invalidateCacheEntry) |
protected org.flowable.idm.api.Token |
loadTokenFromDb(String tokenId) |
void |
setMaxAge(Duration maxAge) |
void |
setMaxUserSize(long maxUserSize) |
protected SecureRandom random
protected final org.flowable.idm.api.IdmIdentityService idmIdentityService
protected long maxUserSize
protected Duration maxAge
public PersistentTokenServiceImpl(org.flowable.idm.api.IdmIdentityService idmIdentityService)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected org.flowable.idm.api.Token loadTokenFromDb(String tokenId)
@Transactional public void delete(org.flowable.idm.api.Token token)
delete
in interface PersistentTokenService
@Transactional(readOnly=true) public org.flowable.idm.api.Token getToken(String tokenId)
getToken
in interface PersistentTokenService
@Transactional(readOnly=true) public org.flowable.idm.api.Token invalidateCacheEntryAndGetToken(String tokenId, boolean invalidateCacheEntry)
invalidateCacheEntryAndGetToken
in interface PersistentTokenService
public org.flowable.idm.api.Token createToken(String userId, String remoteAddress, String userAgent)
createToken
in interface PersistentTokenService
public long getMaxUserSize()
public void setMaxUserSize(long maxUserSize)
public Duration getMaxAge()
public void setMaxAge(Duration maxAge)
Copyright © 2019. All rights reserved.