org.springframework.security.oauth2.client.token
类 OAuth2AccessTokenSupport
java.lang.Object
org.springframework.security.oauth2.client.token.OAuth2AccessTokenSupport
- 直接已知子类:
- AccessTokenProviderChain, AuthorizationCodeAccessTokenProvider, ClientCredentialsAccessTokenProvider, ImplicitAccessTokenProvider, ResourceOwnerPasswordAccessTokenProvider
public abstract class OAuth2AccessTokenSupport
- extends Object
Base support logic for obtaining access tokens.
- 作者:
- Ryan Heaton, Dave Syer
|
字段摘要 |
protected org.apache.commons.logging.Log |
logger
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
OAuth2AccessTokenSupport
public OAuth2AccessTokenSupport()
setInterceptors
public void setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
- Sets the request interceptors that this accessor should use.
getRestTemplate
protected org.springframework.web.client.RestOperations getRestTemplate()
setAuthenticationHandler
public void setAuthenticationHandler(ClientAuthenticationHandler authenticationHandler)
setMessageConverters
public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
retrieveToken
protected OAuth2AccessToken retrieveToken(org.springframework.util.MultiValueMap<String,String> form,
org.springframework.http.HttpHeaders headers,
OAuth2ProtectedResourceDetails resource)
throws OAuth2AccessDeniedException
- 抛出:
OAuth2AccessDeniedException
getHttpMethod
protected org.springframework.http.HttpMethod getHttpMethod()
getAccessTokenUri
protected String getAccessTokenUri(OAuth2ProtectedResourceDetails resource,
org.springframework.util.MultiValueMap<String,String> form)
getResponseErrorHandler
protected org.springframework.web.client.ResponseErrorHandler getResponseErrorHandler()
setRequestFactory
public void setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
- Set the request factory that this template uses for obtaining
HttpRequests.
getResponseExtractor
protected org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> getResponseExtractor()
getRequestCallback
protected org.springframework.web.client.RequestCallback getRequestCallback(OAuth2ProtectedResourceDetails resource,
org.springframework.util.MultiValueMap<String,String> form,
org.springframework.http.HttpHeaders headers)
Copyright © 2013. All rights reserved.