public class CustomSdkSigner
extends software.amazon.awssdk.auth.signer.internal.AbstractAwsS3V4Signer
implements software.amazon.awssdk.core.signer.Signer
ITestCustomSigner.
fs.s3a.custom.signers=CustomSdkSigner:org.apache.hadoop.fs.s3a.auth.CustomSdkSigner fs.s3a.s3.signing-algorithm=CustomSdkSigner
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomSdkSigner.Initializer |
| Constructor and Description |
|---|
CustomSdkSigner() |
| Modifier and Type | Method and Description |
|---|---|
static String |
description() |
static int |
getInstantiationCount() |
static int |
getInvocationCount() |
software.amazon.awssdk.http.SdkHttpFullRequest |
sign(software.amazon.awssdk.http.SdkHttpFullRequest request,
software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
Method to sign the incoming request with credentials.
|
calculateContentHash, calculateContentHash, calculateContentHashPresign, getChecksumTrailerLength, presign, presign, processRequestPayload, processRequestPayload, signaddSessionCredentials, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParamsgetBinaryRequestPayloadStream, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMacpublic software.amazon.awssdk.http.SdkHttpFullRequest sign(software.amazon.awssdk.http.SdkHttpFullRequest request,
software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
NOTE: In case of Client-side encryption, we do a "Generate Key" POST request to AWSKMS service rather than S3, this was causing the test to break. When this request happens, we have the endpoint in form of "kms.[REGION].amazonaws.com", and bucket-name becomes "kms". We can't use AWSS3V4Signer for AWSKMS service as it contains a header "x-amz-content-sha256:UNSIGNED-PAYLOAD", which returns a 400 bad request because the signature calculated by the service doesn't match what we sent.
sign in interface software.amazon.awssdk.core.signer.Signersign in class software.amazon.awssdk.auth.signer.internal.AbstractAwsS3V4Signerrequest - the request to sign.executionAttributes - request executionAttributes which contain the credentials.public static int getInstantiationCount()
public static int getInvocationCount()
public static String description()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.