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

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

public class NoOpOAuthRememberMeServices
extends Object
implements OAuthRememberMeServices

Basic, no-op implementation of the remember-me services. Not very useful in a 3-legged OAuth flow, but for a 2-legged system where there are no request tokens to store in between requests it keeps the consumer stateless at the price of obtaining a new access token for every request.

Author:
Ryan Heaton

Constructor Summary
NoOpOAuthRememberMeServices()
           
 
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
 

Constructor Detail

NoOpOAuthRememberMeServices

public NoOpOAuthRememberMeServices()
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.