public final class SignerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NO_OP_SIGNER |
static String |
QUERY_STRING_SIGNER |
static String |
VERSION_FOUR_SIGNER |
static String |
VERSION_FOUR_UNSIGNED_PAYLOAD_SIGNER |
static String |
VERSION_THREE_SIGNER |
Modifier and Type | Method and Description |
---|---|
static Signer |
createSigner(String signerType,
SignerParams params)
Create an instance of the given signer type and initialize it with the
given parameters.
|
static Signer |
getSigner(String serviceName,
String regionName)
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.
|
public static final String QUERY_STRING_SIGNER
public static final String VERSION_THREE_SIGNER
public static final String VERSION_FOUR_SIGNER
public static final String VERSION_FOUR_UNSIGNED_PAYLOAD_SIGNER
public static final String NO_OP_SIGNER
public static void registerSigner(String signerType, Class<? extends Signer> signerClass)
signerType
- The name of the signer type to register.signerClass
- The class implementing the given signature protocol.public static Signer getSigner(String serviceName, String regionName)
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.public static Signer getSignerByTypeAndService(String signerType, String serviceName)
signerType
- The type of signer to create.serviceName
- The name of the service to configure on the signer.public static Signer createSigner(String signerType, SignerParams params)
signerType
- The signer type.params
- The parameters to intialize the signer with.Copyright © 2021. All rights reserved.