Class InMemoryTokenRepositoryImpl
- java.lang.Object
-
- org.springframework.security.web.authentication.rememberme.InMemoryTokenRepositoryImpl
-
- All Implemented Interfaces:
PersistentTokenRepository
public class InMemoryTokenRepositoryImpl extends java.lang.Object implements PersistentTokenRepository
Simple PersistentTokenRepository implementation backed by a Map. Intended for testing only.
-
-
Constructor Summary
Constructors Constructor Description InMemoryTokenRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createNewToken(PersistentRememberMeToken token)
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)
-
-
-
Method Detail
-
createNewToken
public void createNewToken(PersistentRememberMeToken token)
- Specified by:
createNewToken
in interfacePersistentTokenRepository
-
updateToken
public void updateToken(java.lang.String series, java.lang.String tokenValue, java.util.Date lastUsed)
- Specified by:
updateToken
in interfacePersistentTokenRepository
-
getTokenForSeries
public PersistentRememberMeToken getTokenForSeries(java.lang.String seriesId)
- Specified by:
getTokenForSeries
in interfacePersistentTokenRepository
-
removeUserTokens
public void removeUserTokens(java.lang.String username)
- Specified by:
removeUserTokens
in interfacePersistentTokenRepository
-
-