org.springframework.security.oauth.consumer.rememberme
Class HttpSessionOAuthRememberMeServices

java.lang.Object
  extended by org.springframework.security.oauth.consumer.rememberme.HttpSessionOAuthRememberMeServices
All Implemented Interfaces:
OAuthRememberMeServices

public class HttpSessionOAuthRememberMeServices
extends Object
implements OAuthRememberMeServices

Default implementation of the OAuth2 rememberme services. Just stores everything in the session.

Author:
Ryan Heaton

Field Summary
static String REMEMBERED_TOKENS_KEY
           
 
Constructor Summary
HttpSessionOAuthRememberMeServices()
           
 
Method Summary
 Map<String,OAuthConsumerToken> loadRememberedTokens(HttpServletRequest request, HttpServletResponse response)
          Load any remembered tokens for the given request.
 void rememberTokens(Map<String,OAuthConsumerToken> tokens, HttpServletRequest request, HttpServletResponse response)
          Remember the specified tokens for the given request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMEMBERED_TOKENS_KEY

public static final String REMEMBERED_TOKENS_KEY
Constructor Detail

HttpSessionOAuthRememberMeServices

public HttpSessionOAuthRememberMeServices()
Method Detail

loadRememberedTokens

public Map<String,OAuthConsumerToken> loadRememberedTokens(HttpServletRequest request,
                                                           HttpServletResponse response)
Description copied from interface: OAuthRememberMeServices
Load any remembered tokens for the given request.

Specified by:
loadRememberedTokens in interface OAuthRememberMeServices
Parameters:
request - The request.
response - The response.
Returns:
The tokens (mapped by resource id), or null if none are remembered.

rememberTokens

public void rememberTokens(Map<String,OAuthConsumerToken> tokens,
                           HttpServletRequest request,
                           HttpServletResponse response)
Description copied from interface: OAuthRememberMeServices
Remember the specified tokens for the given request.

Specified by:
rememberTokens in interface OAuthRememberMeServices
Parameters:
tokens - The tokens (null to forget all tokens).
request - The request.
response - The response.


Copyright © 2012. All Rights Reserved.