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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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, wait

    Methods 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:
      sign in interface software.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:
      signAsync in interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>