Spring Security Framework

org.springframework.security.ui.rememberme
Class InMemoryTokenRepositoryImpl

java.lang.Object
  extended by org.springframework.security.ui.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$
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

Spring Security Framework

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