Class AwsS3V4ChunkSigner
java.lang.Object
software.amazon.awssdk.auth.signer.internal.chunkedencoding.AwsS3V4ChunkSigner
- All Implemented Interfaces:
- AwsChunkSigner
An implementation of AwsChunkSigner that can calculate a Sigv4 compatible chunk
 signature.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intsignChecksumChunk(byte[] calculatedChecksum, String previousSignature, String checksumHeaderForTrailer) Signed chunk must be of below format signature = Hex(HMAC(K, "AWS4-HMAC-SHA256-TRAILER"\n DATE\n KEYPATH\n final_chunk_signature\n Hex(SHA256(canonicalize(trailing-headers)))))
- 
Field Details- 
SIGNATURE_LENGTHpublic static final int SIGNATURE_LENGTH- See Also:
 
 
- 
- 
Constructor Details- 
AwsS3V4ChunkSigner
 
- 
- 
Method Details- 
signChunk- Specified by:
- signChunkin interface- AwsChunkSigner
 
- 
signChecksumChunkpublic String signChecksumChunk(byte[] calculatedChecksum, String previousSignature, String checksumHeaderForTrailer) Signed chunk must be of below format signature = Hex(HMAC(K, "AWS4-HMAC-SHA256-TRAILER"\n DATE\n KEYPATH\n final_chunk_signature\n Hex(SHA256(canonicalize(trailing-headers)))))- Specified by:
- signChecksumChunkin interface- AwsChunkSigner
- Returns:
- Signed Checksum in above signature format.
 
- 
getSignatureLengthpublic static int getSignatureLength()
 
-