org.springframework.security.oauth.consumer.rememberme
Interface OAuthRememberMeServices

All Known Implementing Classes:
HttpSessionOAuthRememberMeServices, NoOpOAuthRememberMeServices

public interface OAuthRememberMeServices

Services for "remembering" the access tokens that have been obtained.

Author:
Ryan Heaton

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.
 

Method Detail

loadRememberedTokens

Map<String,OAuthConsumerToken> loadRememberedTokens(HttpServletRequest request,
                                                    HttpServletResponse response)
Load any remembered tokens for the given request.

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

rememberTokens

void rememberTokens(Map<String,OAuthConsumerToken> tokens,
                    HttpServletRequest request,
                    HttpServletResponse response)
Remember the specified tokens for the given request.

Parameters:
tokens - The tokens (null to forget all tokens).
request - The request.
response - The response.


Copyright © 2012. All Rights Reserved.