org.springframework.security.oauth2.client
Interface OAuth2ClientContext
- All Known Implementing Classes:
- DefaultOAuth2ClientContext
public interface OAuth2ClientContext
- Author:
- Dave Syer
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 statepreservedState
- 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 © 2013. All Rights Reserved.