Interface PayloadChecksumStore
- All Known Implementing Classes:
DefaultPayloadChecksumStore,NoOpPayloadChecksumStore,NoOpPayloadChecksumStore
Storage object for storing computed checksums for a request payload.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsChecksumValue(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 Details
-
putChecksumValue
Store the checksum value computed using the given algorithm.- Returns:
- The previous value stored for this algorithm or
nullif not present.
-
getChecksumValue
Retrieve the stored checksum value for the given algorithm.- Returns:
- The checksum value for the given algorithm or
nullif not present.
-
containsChecksumValue
Returnstrueif the store contains a checksum value for the given algorithm,falseotherwise. -
create
Returns the default implementation of this interface.
-