Interface OAuth2ResourceDetailsGeneratorFactory
- All Known Implementing Classes:
DefaultOAuth2ResourceDetailsGeneratorFactory
public interface OAuth2ResourceDetailsGeneratorFactory
Factory that determines what implementation of the
OAuth2ProtectedResourceDetails needs to be implemented based on the
type of the-
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
-
Method Details
-
isApplicable
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
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.
-