public final class SignerFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_OP_SIGNER |
static String |
S3_V2_SIGNER
The v2 signer is no longer available: "S3SignerType".
|
static String |
VERSION_FOUR_SIGNER |
static String |
VERSION_FOUR_UNSIGNED_PAYLOAD_SIGNER |
| Modifier and Type | Method and Description |
|---|---|
static software.amazon.awssdk.http.auth.spi.scheme.AuthScheme<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> |
createAuthScheme(String schemeId,
software.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> signer)
Create an auth scheme instance from an ID and a signer.
|
static software.amazon.awssdk.http.auth.spi.scheme.AuthScheme<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> |
createHttpSigner(org.apache.hadoop.conf.Configuration conf,
String scheme,
String configKey)
Create an auth scheme by looking up the signer class in the configuration,
loading and instantiating it.
|
static software.amazon.awssdk.core.signer.Signer |
createSigner(String signerType,
String configKey)
Create an instance of the given signer.
|
static boolean |
isSignerRegistered(String signerType)
Check if the signer has already been registered.
|
static void |
registerSigner(String signerType,
Class<? extends software.amazon.awssdk.core.signer.Signer> signerClass)
Register an implementation class for the given signer type.
|
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 final String S3_V2_SIGNER
public static void registerSigner(String signerType, Class<? extends software.amazon.awssdk.core.signer.Signer> signerClass)
signerType - The name of the signer type to register.signerClass - The class implementing the given signature protocol.public static boolean isSignerRegistered(String signerType)
signerType - signer to getpublic static software.amazon.awssdk.core.signer.Signer createSigner(String signerType, String configKey) throws IOException
signerType - The signer type.configKey - Config key used to configure the signer.InstantiationIOException - instantiation problems.IOException - on any other problem.public static software.amazon.awssdk.http.auth.spi.scheme.AuthScheme<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> createAuthScheme(String schemeId, software.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> signer)
schemeId - scheme idsigner - signerpublic static software.amazon.awssdk.http.auth.spi.scheme.AuthScheme<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> createHttpSigner(org.apache.hadoop.conf.Configuration conf,
String scheme,
String configKey)
throws IOException
conf - configurationscheme - scheme to bond toconfigKey - configuration keyInstantiationIOException - failure to instantiateIllegalStateException - if the signer class is not definedRuntimeException - other configuration problemsIOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.