org.springframework.security.oauth2.client
类 DefaultOAuth2ClientContext
java.lang.Object
org.springframework.security.oauth2.client.DefaultOAuth2ClientContext
- 所有已实现的接口:
- Serializable, OAuth2ClientContext
public class DefaultOAuth2ClientContext
- extends Object
- implements OAuth2ClientContext, Serializable
The OAuth 2 security context (for a specific user or client or combination thereof).
- 作者:
- Dave Syer
- 另请参见:
- 序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOAuth2ClientContext
public DefaultOAuth2ClientContext()
DefaultOAuth2ClientContext
public DefaultOAuth2ClientContext(AccessTokenRequest accessTokenRequest)
DefaultOAuth2ClientContext
public DefaultOAuth2ClientContext(OAuth2AccessToken accessToken)
getAccessToken
public OAuth2AccessToken getAccessToken()
- 指定者:
- 接口
OAuth2ClientContext 中的 getAccessToken
- 返回:
- the current access token if any (may be null or empty)
setAccessToken
public void setAccessToken(OAuth2AccessToken accessToken)
- 指定者:
- 接口
OAuth2ClientContext 中的 setAccessToken
- 参数:
accessToken - the current access token
getAccessTokenRequest
public AccessTokenRequest getAccessTokenRequest()
- 指定者:
- 接口
OAuth2ClientContext 中的 getAccessTokenRequest
- 返回:
- the current request if any (may be null or empty)
setPreservedState
public void setPreservedState(String stateKey,
Object preservedState)
- 从接口
OAuth2ClientContext 复制的描述
- Convenience method for saving state in the
OAuth2ClientContext.
- 指定者:
- 接口
OAuth2ClientContext 中的 setPreservedState
- 参数:
stateKey - the key to use to save the statepreservedState - the state to be saved
removePreservedState
public Object removePreservedState(String stateKey)
- 指定者:
- 接口
OAuth2ClientContext 中的 removePreservedState
- 参数:
stateKey - the state key to lookup
- 返回:
- the state preserved with this key (if any)
Copyright © 2013. All rights reserved.