Interface OAuth2ResourceDetailsGeneratorFactory
-
- All Known Implementing Classes:
DefaultOAuth2ResourceDetailsGeneratorFactory
public interface OAuth2ResourceDetailsGeneratorFactoryFactory that determines what implementation of theOAuth2ProtectedResourceDetailsneeds to be implemented based on the type of the
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean isApplicable(AbstractCredentialModel credentialModel)
Determines if the factory is applicable and a generator needs to be instantiated based on the supported credential model types- Parameters:
credentialModel- used for creating the generator- Returns:
- true if the credential model is supported, false if it's not
-
getGenerator
OAuth2ResourceDetailsGenerator getGenerator(AbstractCredentialModel credentialModel)
Factory method that instantiates the correct implementation based on the specific type of the credential model received as a parameter- Parameters:
credentialModel- credential used in the consumed destination- Returns:
- The implementation of the generator that corresponds to the specific credential model used.
-
-