Class DefaultOAuth2ResourceDetailsGeneratorFactory
- java.lang.Object
-
- de.hybris.platform.outboundservices.client.impl.DefaultOAuth2ResourceDetailsGeneratorFactory
-
- All Implemented Interfaces:
OAuth2ResourceDetailsGeneratorFactory
public class DefaultOAuth2ResourceDetailsGeneratorFactory extends java.lang.Object implements OAuth2ResourceDetailsGeneratorFactory
Default implementation ofOAuth2ResourceDetailsGeneratorFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultOAuth2ResourceDetailsGeneratorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2ResourceDetailsGeneratorgetGenerator(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
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(AbstractCredentialModel credentialModel)
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
public OAuth2ResourceDetailsGenerator getGenerator(AbstractCredentialModel credentialModel)
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.
-
-