public class OAuth2AccessTokenProvidingClientHttpRequestInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
ClientHttpRequestInterceptor
will retrieve, if available, the OAuth2 Access Token
and add it to the Authorization
HTTP header.Constructor and Description |
---|
OAuth2AccessTokenProvidingClientHttpRequestInterceptor() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
public OAuth2AccessTokenProvidingClientHttpRequestInterceptor()
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
intercept
in interface org.springframework.http.client.ClientHttpRequestInterceptor
IOException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.