Interface OAuth2ResourceDetailsGenerator
-
- All Known Implementing Classes:
ConsumedOAuth2ResourceDetailsGenerator,ExposedOAuth2ResourceDetailsGenerator
public interface OAuth2ResourceDetailsGeneratorDefines the interface for generating anOAuth2ProtectedResourceDetails
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean isApplicable(AbstractCredentialModel credentialModel)
Determines whether the generator is applicable or not based on the type of the concrete type of theAbstractCredentialModel- Parameters:
credentialModel- of a specific type- Returns:
- true if the credential model is supported, false if it's not
-
createResourceDetails
org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails createResourceDetails(ConsumedDestinationModel destination)
Creates and returns theOAuth2ProtectedResourceDetailsbased on the credentials found in theConsumedDestinationModelreceived as a parameter- Parameters:
destination-ConsumedDestinationModelwith the necessary details to create the resource details- Returns:
OAuth2ProtectedResourceDetailsgenerated
-
-