Class OAuth2AuthorizedClientHttpRequestInterceptor
java.lang.Object
io.pivotal.spring.cloud.config.client.OAuth2AuthorizedClientHttpRequestInterceptor
- All Implemented Interfaces:
ClientHttpRequestInterceptor
public class OAuth2AuthorizedClientHttpRequestInterceptor
extends Object
implements ClientHttpRequestInterceptor
ClientHttpRequestInterceptor implementation to add authorization header to
request based on an OAuth2AuthorizedClient.- Author:
- Dylan Roberts
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AuthorizedClientHttpRequestInterceptor(org.springframework.security.oauth2.client.registration.ClientRegistration registration) -
Method Summary
Modifier and TypeMethodDescriptionintercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)
-
Constructor Details
-
OAuth2AuthorizedClientHttpRequestInterceptor
public OAuth2AuthorizedClientHttpRequestInterceptor(org.springframework.security.oauth2.client.registration.ClientRegistration registration)
-
-
Method Details
-
intercept
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException - Specified by:
interceptin interfaceClientHttpRequestInterceptor- Throws:
IOException
-