Package org.apache.hadoop.fs.s3a.auth
Class CustomHttpSigner
java.lang.Object
org.apache.hadoop.fs.s3a.auth.CustomHttpSigner
- All Implemented Interfaces:
software.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>
public class CustomHttpSigner
extends Object
implements software.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>
Custom signer that delegates to the AWS V4 signer.
Logs at TRACE the string value of any request.
This is in the production code to support testing the signer plugin mechansim.
To use
fs.s3a.http.signer.enabled = true fs.s3a.http.signer.class = org.apache.hadoop.fs.s3a.auth.CustomHttpSigner
-
Field Summary
Fields inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
SIGNING_CLOCK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.http.auth.spi.signer.SignedRequestsign(software.amazon.awssdk.http.auth.spi.signer.SignRequest<? extends software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> request) CompletableFuture<software.amazon.awssdk.http.auth.spi.signer.AsyncSignedRequest>signAsync(software.amazon.awssdk.http.auth.spi.signer.AsyncSignRequest<? extends software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
doNotSign, sign, signAsync
-
Constructor Details
-
CustomHttpSigner
public CustomHttpSigner()
-
-
Method Details
-
sign
public software.amazon.awssdk.http.auth.spi.signer.SignedRequest sign(software.amazon.awssdk.http.auth.spi.signer.SignRequest<? extends software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> request) - Specified by:
signin interfacesoftware.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>
-
signAsync
public CompletableFuture<software.amazon.awssdk.http.auth.spi.signer.AsyncSignedRequest> signAsync(software.amazon.awssdk.http.auth.spi.signer.AsyncSignRequest<? extends software.amazon.awssdk.identity.spi.AwsCredentialsIdentity> request) - Specified by:
signAsyncin interfacesoftware.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>
-