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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()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)
-
-
-
Method Detail
-
sign
public byte[] sign(ByteBuffer chunkBody)
Using a template that incorporates the previous calculated signature, sign the string and return it.
-
reset
public void reset()
-
-