org.springframework.security.web.authentication.rememberme
Class InMemoryTokenRepositoryImpl

java.lang.Object
  extended by org.springframework.security.web.authentication.rememberme.InMemoryTokenRepositoryImpl
All Implemented Interfaces:
PersistentTokenRepository

public class InMemoryTokenRepositoryImpl
extends Object
implements PersistentTokenRepository

Simple PersistentTokenRepository implementation backed by a Map. Intended for testing only.

Version:
$Id: InMemoryTokenRepositoryImpl.java 3543 2009-03-26 07:18:36Z ltaylor $
Author:
Luke Taylor

Constructor Summary
InMemoryTokenRepositoryImpl()
           
 
Method Summary
 void createNewToken(PersistentRememberMeToken token)
           
 PersistentRememberMeToken getTokenForSeries(String seriesId)
           
 void removeUserTokens(String username)
           
 void updateToken(String series, String tokenValue, Date lastUsed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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(String series,
                        String tokenValue,
                        Date lastUsed)
Specified by:
updateToken in interface PersistentTokenRepository

getTokenForSeries

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

removeUserTokens

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


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.