public final class SignerFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Signer |
getSigner(String serviceName)
Returns a non-null signer for the specified service.
|
static Signer |
getSigner(String serviceName,
String regionName)
Returns a non-null signer for the specified service and region.
|
static void |
registerSigner(String signerType,
Class<? extends Signer> signerClass)
Register an implementation class for the given signer type.
|
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.public static Signer getSigner(String serviceName)
UnsupportedOperationException
- if the internal signer type configured is not currently
supported.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.