Class ConsumedOAuth2ResourceDetailsGenerator
java.lang.Object
de.hybris.platform.outboundservices.client.impl.ConsumedOAuth2ResourceDetailsGenerator
- All Implemented Interfaces:
OAuth2ResourceDetailsGenerator
public class ConsumedOAuth2ResourceDetailsGenerator
extends Object
implements OAuth2ResourceDetailsGenerator
Implementation of
OAuth2ResourceDetailsGenerator that generates the resource details from a
ConsumedOAuthCredentialModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetailscreateResourceDetails(ConsumedDestinationModel destination) Creates and returns theOAuth2ProtectedResourceDetailsbased on the credentials found in theConsumedDestinationModelreceived as a parameterbooleanisApplicable(AbstractCredentialModel credentialModel) Determines whether the generator is applicable or not based on the type of the concrete type of theAbstractCredentialModel
-
Constructor Details
-
ConsumedOAuth2ResourceDetailsGenerator
public ConsumedOAuth2ResourceDetailsGenerator()
-
-
Method Details
-
isApplicable
Description copied from interface:OAuth2ResourceDetailsGeneratorDetermines whether the generator is applicable or not based on the type of the concrete type of theAbstractCredentialModel- Specified by:
isApplicablein interfaceOAuth2ResourceDetailsGenerator- Parameters:
credentialModel- of a specific type- Returns:
- true if the credential model is supported, false if it's not
-
createResourceDetails
public org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails createResourceDetails(ConsumedDestinationModel destination) Description copied from interface:OAuth2ResourceDetailsGeneratorCreates and returns theOAuth2ProtectedResourceDetailsbased on the credentials found in theConsumedDestinationModelreceived as a parameter- Specified by:
createResourceDetailsin interfaceOAuth2ResourceDetailsGenerator- Parameters:
destination-ConsumedDestinationModelwith the necessary details to create the resource details- Returns:
OAuth2ProtectedResourceDetailsgenerated
-