public class DefaultIntegrationOAuth2RestTemplateCreator extends AbstractRestTemplateCreator
| Constructor and Description |
|---|
DefaultIntegrationOAuth2RestTemplateCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected ClientCredentialsAccessTokenProvider |
accessTokenProvider(ClientHttpRequestFactory clientFactory) |
RestOperations |
create(ConsumedDestinationModel destination)
Create a rest template by given consumed destination model.
|
boolean |
isApplicable(ConsumedDestinationModel destination)
If the strategy applicable for giving consumed destination model
|
protected OAuth2ProtectedResourceDetails |
oAuth2Resource(ExposedOAuthCredentialModel credential) |
addInterceptors, addMessageConverters, getClientHttpRequestFactory, getMessageConverters, getRequestInterceptors, setClientHttpRequestFactory, setMessageConverters, setRequestInterceptorspublic DefaultIntegrationOAuth2RestTemplateCreator()
public RestOperations create(ConsumedDestinationModel destination)
IntegrationRestTemplateCreatordestination - consumed destination modelpublic boolean isApplicable(ConsumedDestinationModel destination)
IntegrationRestTemplateCreatordestination - consumed destination modelprotected ClientCredentialsAccessTokenProvider accessTokenProvider(ClientHttpRequestFactory clientFactory)
protected OAuth2ProtectedResourceDetails oAuth2Resource(ExposedOAuthCredentialModel credential)
Copyright © 2018 SAP SE. All Rights Reserved.