Class DefaultOAuth2ResourceDetailsGeneratorFactory
java.lang.Object
de.hybris.platform.outboundservices.client.impl.DefaultOAuth2ResourceDetailsGeneratorFactory
- All Implemented Interfaces:
OAuth2ResourceDetailsGeneratorFactory
public class DefaultOAuth2ResourceDetailsGeneratorFactory
extends Object
implements OAuth2ResourceDetailsGeneratorFactory
Default implementation of
OAuth2ResourceDetailsGeneratorFactory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGenerator(AbstractCredentialModel credentialModel) Factory method that instantiates the correct implementation based on the specific type of the credential model received as a parameterbooleanisApplicable(AbstractCredentialModel credentialModel) Determines if the factory is applicable and a generator needs to be instantiated based on the supported credential model types
-
Constructor Details
-
DefaultOAuth2ResourceDetailsGeneratorFactory
public DefaultOAuth2ResourceDetailsGeneratorFactory()
-
-
Method Details
-
isApplicable
Description copied from interface:OAuth2ResourceDetailsGeneratorFactoryDetermines if the factory is applicable and a generator needs to be instantiated based on the supported credential model types- Specified by:
isApplicablein interfaceOAuth2ResourceDetailsGeneratorFactory- Parameters:
credentialModel- used for creating the generator- Returns:
- true if the credential model is supported, false if it's not
-
getGenerator
Description copied from interface:OAuth2ResourceDetailsGeneratorFactoryFactory method that instantiates the correct implementation based on the specific type of the credential model received as a parameter- Specified by:
getGeneratorin interfaceOAuth2ResourceDetailsGeneratorFactory- Parameters:
credentialModel- credential used in the consumed destination- Returns:
- The implementation of the generator that corresponds to the specific credential model used.
-