org.springframework.security.oauth2.client
接口 OAuth2ClientContext

所有已知实现类:
DefaultOAuth2ClientContext

public interface OAuth2ClientContext

作者:
Dave Syer

方法摘要
 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.
 

方法详细信息

getAccessToken

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

setAccessToken

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

getAccessTokenRequest

AccessTokenRequest getAccessTokenRequest()
返回:
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.

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

removePreservedState

Object removePreservedState(String stateKey)
参数:
stateKey - the state key to lookup
返回:
the state preserved with this key (if any)


Copyright © 2013. All rights reserved.