Class ExposedOAuth2ResourceDetailsGenerator
java.lang.Object
de.hybris.platform.outboundservices.client.impl.ExposedOAuth2ResourceDetailsGenerator
- All Implemented Interfaces:
OAuth2ResourceDetailsGenerator
@Deprecated(since="2205",
forRemoval=true)
public class ExposedOAuth2ResourceDetailsGenerator
extends Object
implements OAuth2ResourceDetailsGenerator
Deprecated, for removal: This API element is subject to removal in a future version.
Implementation of
OAuth2ResourceDetailsGenerator that generates the resource details from a
ExposedOAuthCredentialModel-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetailscreateResourceDetails(ConsumedDestinationModel destination) Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns theOAuth2ProtectedResourceDetailsbased on the credentials found in theConsumedDestinationModelreceived as a parameterbooleanisApplicable(AbstractCredentialModel credentialModel) Deprecated, for removal: This API element is subject to removal in a future version.Determines whether the generator is applicable or not based on the type of the concrete type of theAbstractCredentialModel
-
Constructor Details
-
ExposedOAuth2ResourceDetailsGenerator
public ExposedOAuth2ResourceDetailsGenerator()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
isApplicable
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OAuth2ResourceDetailsGeneratorDetermines whether the generator is applicable or not based on the type of the concrete type of theAbstractCredentialModel- Specified by:
isApplicablein interfaceOAuth2ResourceDetailsGenerator- Parameters:
credentialModel- of a specific type- Returns:
- true if the credential model is supported, false if it's not
-
createResourceDetails
public org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails createResourceDetails(ConsumedDestinationModel destination) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OAuth2ResourceDetailsGeneratorCreates and returns theOAuth2ProtectedResourceDetailsbased on the credentials found in theConsumedDestinationModelreceived as a parameter- Specified by:
createResourceDetailsin interfaceOAuth2ResourceDetailsGenerator- Parameters:
destination-ConsumedDestinationModelwith the necessary details to create the resource details- Returns:
OAuth2ProtectedResourceDetailsgenerated
-
ConsumedDestinationModelcan not haveExposedOAuthCredentialModeland hence no need of this generator.