Interface OAuth2ResourceDetailsGenerator
- All Known Implementing Classes:
ConsumedOAuth2ResourceDetailsGenerator,ExposedOAuth2ResourceDetailsGenerator
public interface OAuth2ResourceDetailsGenerator
Defines the interface for generating an
OAuth2ProtectedResourceDetails-
Method Summary
Modifier and TypeMethodDescriptionorg.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 Details
-
isApplicable
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
-