Class DefaultPayloadChecksumStore
java.lang.Object
software.amazon.awssdk.http.auth.spi.internal.signer.DefaultPayloadChecksumStore
- All Implemented Interfaces:
PayloadChecksumStore
@SdkInternalApi
@ThreadSafe
public class DefaultPayloadChecksumStore
extends Object
implements PayloadChecksumStore
Default implementation of
PayloadChecksumStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsChecksumValue(ChecksumAlgorithm algorithm) Returnstrueif the store contains a checksum value for the given algorithm,falseotherwise.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:PayloadChecksumStoreStore the checksum value computed using the given algorithm.- Specified by:
putChecksumValuein interfacePayloadChecksumStore- Returns:
- The previous value stored for this algorithm or
nullif not present.
-
getChecksumValue
Description copied from interface:PayloadChecksumStoreRetrieve the stored checksum value for the given algorithm.- Specified by:
getChecksumValuein interfacePayloadChecksumStore- Returns:
- The checksum value for the given algorithm or
nullif not present.
-
containsChecksumValue
Description copied from interface:PayloadChecksumStoreReturnstrueif the store contains a checksum value for the given algorithm,falseotherwise.- Specified by:
containsChecksumValuein interfacePayloadChecksumStore
-