Class ExposedOAuth2ResourceDetailsGenerator
- java.lang.Object
-
- de.hybris.platform.outboundservices.client.impl.ExposedOAuth2ResourceDetailsGenerator
-
- All Implemented Interfaces:
OAuth2ResourceDetailsGenerator
public class ExposedOAuth2ResourceDetailsGenerator extends java.lang.Object implements OAuth2ResourceDetailsGenerator
Implementation ofOAuth2ResourceDetailsGeneratorthat generates the resource details from aExposedOAuthCredentialModel
-
-
Constructor Summary
Constructors Constructor Description ExposedOAuth2ResourceDetailsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(AbstractCredentialModel credentialModel)
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
-
-