Class RollingSigner

java.lang.Object
software.amazon.awssdk.http.auth.aws.crt.internal.signer.RollingSigner

public final class RollingSigner extends Object
A class which calculates a rolling signature of arbitrary data using HMAC-SHA256. Each time a signature is calculated, the prior calculation is incorporated, hence "rolling".
  • Constructor Summary

    Constructors
    Constructor
    Description
    RollingSigner(byte[] seedSignature, software.amazon.awssdk.crt.auth.signing.AwsSigningConfig signingConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    byte[]
    sign(ByteBuffer chunkBody)
    Using a template that incorporates the previous calculated signature, sign the string and return it.
    byte[]
    sign(Map<String,List<String>> headerMap)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RollingSigner

      public RollingSigner(byte[] seedSignature, software.amazon.awssdk.crt.auth.signing.AwsSigningConfig signingConfig)
  • Method Details

    • sign

      public byte[] sign(ByteBuffer chunkBody)
      Using a template that incorporates the previous calculated signature, sign the string and return it.
    • sign

      public byte[] sign(Map<String,List<String>> headerMap)
    • reset

      public void reset()