egovframework.rfc3.iam.security.authentication.rememberme
Class InMemoryTokenRepositoryImpl

java.lang.Object
  extended by egovframework.rfc3.iam.security.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.

Author:
Luke Taylor

Constructor Summary
InMemoryTokenRepositoryImpl()
           
 
Method Summary
 void createNewToken(PersistentRememberMeToken token)
           
 PersistentRememberMeToken getTokenForSeries(java.lang.String seriesId)
           
 void removeCurTokens(java.util.Date date)
           
 void removeUserTokens(java.lang.String username)
           
 void updateToken(java.lang.String series, java.lang.String tokenValue, java.util.Date lastUsed, java.lang.String userIp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryTokenRepositoryImpl

public InMemoryTokenRepositoryImpl()
Method Detail

createNewToken

public void createNewToken(PersistentRememberMeToken token)
Specified by:
createNewToken in interface PersistentTokenRepository

updateToken

public void updateToken(java.lang.String series,
                        java.lang.String tokenValue,
                        java.util.Date lastUsed,
                        java.lang.String userIp)
Specified by:
updateToken in interface PersistentTokenRepository

getTokenForSeries

public PersistentRememberMeToken getTokenForSeries(java.lang.String seriesId)
Specified by:
getTokenForSeries in interface PersistentTokenRepository

removeUserTokens

public void removeUserTokens(java.lang.String username)
Specified by:
removeUserTokens in interface PersistentTokenRepository

removeCurTokens

public void removeCurTokens(java.util.Date date)
Specified by:
removeCurTokens in interface PersistentTokenRepository