Package co.mastermindcms.common.security
Class PersistentTokenServiceImpl
- java.lang.Object
-
- co.mastermindcms.common.security.PersistentTokenServiceImpl
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.rememberme.PersistentTokenRepository
@Service public class PersistentTokenServiceImpl extends java.lang.Object implements org.springframework.security.web.authentication.rememberme.PersistentTokenRepository
-
-
Field Summary
Fields Modifier and Type Field Description private AuthenticationTokenRepository
repository
private SequenceGeneratorService
sequenceGeneratorService
-
Constructor Summary
Constructors Constructor Description PersistentTokenServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createNewToken(org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken token)
org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken
getTokenForSeries(java.lang.String seriesId)
void
removeUserTokens(java.lang.String username)
void
updateToken(java.lang.String series, java.lang.String tokenValue, java.util.Date lastUsed)
-
-
-
Field Detail
-
repository
@Autowired private AuthenticationTokenRepository repository
-
sequenceGeneratorService
@Autowired private SequenceGeneratorService sequenceGeneratorService
-
-
Method Detail
-
createNewToken
public void createNewToken(org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken token)
- Specified by:
createNewToken
in interfaceorg.springframework.security.web.authentication.rememberme.PersistentTokenRepository
-
updateToken
public void updateToken(java.lang.String series, java.lang.String tokenValue, java.util.Date lastUsed)
- Specified by:
updateToken
in interfaceorg.springframework.security.web.authentication.rememberme.PersistentTokenRepository
-
getTokenForSeries
public org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken getTokenForSeries(java.lang.String seriesId)
- Specified by:
getTokenForSeries
in interfaceorg.springframework.security.web.authentication.rememberme.PersistentTokenRepository
-
removeUserTokens
public void removeUserTokens(java.lang.String username)
- Specified by:
removeUserTokens
in interfaceorg.springframework.security.web.authentication.rememberme.PersistentTokenRepository
-
-