Package org.apache.camel.component.http
Class OAuth2ClientConfigurer
java.lang.Object
org.apache.camel.component.http.OAuth2ClientConfigurer
- All Implemented Interfaces:
HttpClientConfigurer
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ClientConfigurer
(String clientId, String clientSecret, String tokenEndpoint, String scope, boolean cacheTokens, long cachedTokensDefaultExpirySeconds, long cachedTokensExpirationMarginSeconds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureHttpClient
(org.apache.hc.client5.http.impl.classic.HttpClientBuilder clientBuilder) Configure the HttpClient such as setting the authentication or proxying details
-
Constructor Details
-
OAuth2ClientConfigurer
-
-
Method Details
-
configureHttpClient
public void configureHttpClient(org.apache.hc.client5.http.impl.classic.HttpClientBuilder clientBuilder) Description copied from interface:HttpClientConfigurer
Configure the HttpClient such as setting the authentication or proxying details- Specified by:
configureHttpClient
in interfaceHttpClientConfigurer
- Parameters:
clientBuilder
- the client
-