Interface OAuth2ResourceDetailsGenerator

    • Method Detail

      • isApplicable

        boolean isApplicable​(AbstractCredentialModel credentialModel)
        Determines whether the generator is applicable or not based on the type of the concrete type of the AbstractCredentialModel
        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 the OAuth2ProtectedResourceDetails based on the credentials found in the ConsumedDestinationModel received as a parameter
        Parameters:
        destination - ConsumedDestinationModel with the necessary details to create the resource details
        Returns:
        OAuth2ProtectedResourceDetails generated