public abstract class OAuth2AccessTokenSupport extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
OAuth2AccessTokenSupport() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAccessTokenUri(OAuth2ProtectedResourceDetails resource,
MultiValueMap<String,String> form) |
protected org.springframework.http.HttpMethod |
getHttpMethod() |
protected org.springframework.web.client.RequestCallback |
getRequestCallback(OAuth2ProtectedResourceDetails resource,
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(AccessTokenRequest request,
OAuth2ProtectedResourceDetails resource,
MultiValueMap<String,String> form,
org.springframework.http.HttpHeaders headers) |
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 . |
void |
setTokenRequestEnhancer(RequestEnhancer tokenRequestEnhancer)
A custom enhancer for the access token request
|
public void setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
public void setTokenRequestEnhancer(RequestEnhancer tokenRequestEnhancer)
tokenRequestEnhancer
- protected org.springframework.web.client.RestOperations getRestTemplate()
public void setAuthenticationHandler(ClientAuthenticationHandler authenticationHandler)
public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
protected OAuth2AccessToken retrieveToken(AccessTokenRequest request, OAuth2ProtectedResourceDetails resource, MultiValueMap<String,String> form, org.springframework.http.HttpHeaders headers) throws OAuth2AccessDeniedException
OAuth2AccessDeniedException
protected org.springframework.http.HttpMethod getHttpMethod()
protected String getAccessTokenUri(OAuth2ProtectedResourceDetails resource, MultiValueMap<String,String> form)
protected org.springframework.web.client.ResponseErrorHandler getResponseErrorHandler()
public void setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
HttpRequests
.protected org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> getResponseExtractor()
protected org.springframework.web.client.RequestCallback getRequestCallback(OAuth2ProtectedResourceDetails resource, MultiValueMap<String,String> form, org.springframework.http.HttpHeaders headers)
Copyright © 2019. All rights reserved.