Class NoOpPayloadChecksumStore
java.lang.Object
software.amazon.awssdk.core.internal.checksums.NoOpPayloadChecksumStore
- All Implemented Interfaces:
PayloadChecksumStore
@SdkInternalApi
public final class NoOpPayloadChecksumStore
extends Object
implements PayloadChecksumStore
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsChecksumValue(ChecksumAlgorithm algorithm) Returnstrueif the store contains a checksum value for the given algorithm,falseotherwise.static NoOpPayloadChecksumStorecreate()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
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
-
create
-