public class DefaultRequestSignerFactory extends Object implements RequestSignerFactory
Factory class to create RequestSigner instances. Takes care of setting up the appropriate suppliers
based on the cacheability of the credentials (indicated by AuthCachingPolicy
. By default,
all credentials are cacheable.
This factory supports authentication providers that inherit from
BasicAuthenticationDetailsProvider
.
Constructor and Description |
---|
DefaultRequestSignerFactory(SigningStrategy signingStrategy) |
Modifier and Type | Method and Description |
---|---|
static Map<SigningStrategy,RequestSignerFactory> |
createDefaultRequestSignerFactories()
Create the default request signer factories.
|
RequestSigner |
createRequestSigner(Service service,
AbstractAuthenticationDetailsProvider abstractAuthProvider)
Creates a new RequestSigner instance from the given provider and type of service.
|
@ConstructorProperties(value="signingStrategy") public DefaultRequestSignerFactory(SigningStrategy signingStrategy)
public RequestSigner createRequestSigner(Service service, AbstractAuthenticationDetailsProvider abstractAuthProvider)
Creates a new RequestSigner instance from the given provider and type of service.
Note, service parameter is not used by this factory.
createRequestSigner
in interface RequestSignerFactory
service
- The service type.abstractAuthProvider
- The authentication details provider.public static Map<SigningStrategy,RequestSignerFactory> createDefaultRequestSignerFactories()
Create the default request signer factories.
Copyright © 2016–2022. All rights reserved.