Interface PayloadChecksumStore
-
- All Known Implementing Classes:
DefaultPayloadChecksumStore
@SdkProtectedApi public interface PayloadChecksumStore
Storage object for storing computed checksums for a request payload.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsChecksumValue(ChecksumAlgorithm algorithm)Returnstrueif the store contains a checksum value for the given algorithm,falseotherwise.static PayloadChecksumStorecreate()Returns the default implementation of this interface.byte[]getChecksumValue(ChecksumAlgorithm algorithm)Retrieve the stored checksum value for the given algorithm.byte[]putChecksumValue(ChecksumAlgorithm algorithm, byte[] checksum)Store the checksum value computed using the given algorithm.
-
-
-
Method Detail
-
putChecksumValue
byte[] putChecksumValue(ChecksumAlgorithm algorithm, byte[] checksum)
Store the checksum value computed using the given algorithm.- Returns:
- The previous value stored for this algorithm or
nullif not present.
-
getChecksumValue
byte[] getChecksumValue(ChecksumAlgorithm algorithm)
Retrieve the stored checksum value for the given algorithm.- Returns:
- The checksum value for the given algorithm or
nullif not present.
-
containsChecksumValue
boolean containsChecksumValue(ChecksumAlgorithm algorithm)
Returnstrueif the store contains a checksum value for the given algorithm,falseotherwise.
-
create
static PayloadChecksumStore create()
Returns the default implementation of this interface.
-
-