Interface PayloadChecksumStore
- All Known Implementing Classes:
DefaultPayloadChecksumStore
,NoOpPayloadChecksumStore
,NoOpPayloadChecksumStore
public interface PayloadChecksumStore
Storage object for storing computed checksums for a request payload.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsChecksumValue
(ChecksumAlgorithm algorithm) Returnstrue
if the store contains a checksum value for the given algorithm,false
otherwise.static PayloadChecksumStore
create()
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
null
if not present.
-
getChecksumValue
Retrieve the stored checksum value for the given algorithm.- Returns:
- The checksum value for the given algorithm or
null
if not present.
-
containsChecksumValue
Returnstrue
if the store contains a checksum value for the given algorithm,false
otherwise. -
create
Returns the default implementation of this interface.
-