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
           
 
构造方法摘要
OAuth2AccessTokenSupport()
           
 
方法摘要
protected  String getAccessTokenUri(OAuth2ProtectedResourceDetails resource, org.springframework.util.MultiValueMap<String,String> form)
           
protected  org.springframework.http.HttpMethod getHttpMethod()
           
protected  org.springframework.web.client.RequestCallback getRequestCallback(OAuth2ProtectedResourceDetails resource, org.springframework.util.MultiValueMap<String,String> form, org.springframework.http.HttpHeaders headers)
           
protected  org.springframework.web.client.ResponseErrorHandler getResponseErrorHandler()
           
protected  org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> getResponseExtractor()
           
protected  org.springframework.web.client.RestOperations getRestTemplate()
           
protected  OAuth2AccessToken retrieveToken(org.springframework.util.MultiValueMap<String,String> form, org.springframework.http.HttpHeaders headers, OAuth2ProtectedResourceDetails resource)
           
 void setAuthenticationHandler(ClientAuthenticationHandler authenticationHandler)
           
 void setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
          Sets the request interceptors that this accessor should use.
 void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
           
 void setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
          Set the request factory that this template uses for obtaining HttpRequests.
 
从类 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.