org.springframework.security.oauth2.client.context
Interface OAuth2ClientContext

All Known Implementing Classes:
DefaultOAuth2ClientContext

public interface OAuth2ClientContext

Author:
Dave Syer

Method Summary
 OAuth2AccessToken getAccessToken()
           
 AccessTokenRequest getAccessTokenRequest()
           
 Object removePreservedState(String stateKey)
           
 void setAccessToken(OAuth2AccessToken accessToken)
           
 void setPreservedState(String stateKey, Object preservedState)
          Convenience method for saving state in the OAuth2ClientContext.
 

Method Detail

getAccessToken

OAuth2AccessToken getAccessToken()
Returns:
the current access token if any (may be null or empty)

setAccessToken

void setAccessToken(OAuth2AccessToken accessToken)
Parameters:
accessToken - the current access token

getAccessTokenRequest

AccessTokenRequest getAccessTokenRequest()
Returns:
the current request if any (may be null or empty)

setPreservedState

void setPreservedState(String stateKey,
                       Object preservedState)
Convenience method for saving state in the OAuth2ClientContext.

Parameters:
stateKey - the key to use to save the state
preservedState - the state to be saved

removePreservedState

Object removePreservedState(String stateKey)
Parameters:
stateKey - the state key to lookup
Returns:
the state preserved with this key (if any)


Copyright © 2012. All Rights Reserved.