Class DefaultPayloadChecksumStore
java.lang.Object
software.amazon.awssdk.http.auth.spi.internal.signer.DefaultPayloadChecksumStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsChecksumValue
(ChecksumAlgorithm algorithm) Returnstrue
if the store contains a checksum value for the given algorithm,false
otherwise.byte[]
getChecksumValue
(ChecksumAlgorithm algorithm) Retrieve the stored checksum value for the given algorithm.byte[]
putChecksumValue
(ChecksumAlgorithm algorithm, byte[] value) Store the checksum value computed using the given algorithm.
-
Constructor Details
-
DefaultPayloadChecksumStore
public DefaultPayloadChecksumStore()
-
-
Method Details
-
putChecksumValue
Description copied from interface:PayloadChecksumStore
Store the checksum value computed using the given algorithm.- Specified by:
putChecksumValue
in interfacePayloadChecksumStore
- Returns:
- The previous value stored for this algorithm or
null
if not present.
-
getChecksumValue
Description copied from interface:PayloadChecksumStore
Retrieve the stored checksum value for the given algorithm.- Specified by:
getChecksumValue
in interfacePayloadChecksumStore
- Returns:
- The checksum value for the given algorithm or
null
if not present.
-
containsChecksumValue
Description copied from interface:PayloadChecksumStore
Returnstrue
if the store contains a checksum value for the given algorithm,false
otherwise.- Specified by:
containsChecksumValue
in interfacePayloadChecksumStore
-