Package com.amazonaws.auth
Class SignerFactory
java.lang.Object
com.amazonaws.auth.SignerFactory
Signer factory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Signer
Returns a non-null signer for the specified service and region according to the internal configuration which provides a basic default algorithm used for signer determination.static Signer
getSignerByTypeAndService
(String signerType, String serviceName) Returns an instance of the given signer type and configures it with the given service name (if applicable).static void
registerSigner
(String signerType, Class<? extends Signer> signerClass) Register an implementation class for the given signer type.
-
Method Details
-
registerSigner
Register an implementation class for the given signer type.- Parameters:
signerType
- The name of the signer type to register.signerClass
- The class implementing the given signature protocol.
-
getSigner
Returns a non-null signer for the specified service and region according to the internal configuration which provides a basic default algorithm used for signer determination.- Parameters:
serviceName
- The name of the service to talk to.regionName
- The name of the region to talk to; not necessarily the region used for signing.
-
getSignerByTypeAndService
Returns an instance of the given signer type and configures it with the given service name (if applicable).- Parameters:
signerType
- The type of signer to create.serviceName
- The name of the service to configure on the signer.- Returns:
- a non-null signer.
-