Class PrecomputedSha256Checksummer
- java.lang.Object
-
- software.amazon.awssdk.http.auth.aws.internal.signer.PrecomputedSha256Checksummer
-
- All Implemented Interfaces:
Checksummer
public final class PrecomputedSha256Checksummer extends Object implements Checksummer
An implementation of a checksummer that simply passes along a computed value as a checksum. Specifically, this is used in the cases where the checksum is a pre-defined value that dictates specific behavior by the signer, and flexible checksums is not enabled for the request (such as aws-chunked payload signing without trailers, unsigned streaming without trailers, etc.).
-
-
Constructor Summary
Constructors Constructor Description PrecomputedSha256Checksummer(Callable<String> computation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<org.reactivestreams.Publisher<ByteBuffer>>checksum(org.reactivestreams.Publisher<ByteBuffer> payload, SdkHttpRequest.Builder request)Given a payload, asynchronously calculate a checksum and promise to add it to the request.voidchecksum(ContentStreamProvider payload, SdkHttpRequest.Builder request)Given a payload, calculate a checksum and add it to the request.
-
-
-
Method Detail
-
checksum
public void checksum(ContentStreamProvider payload, SdkHttpRequest.Builder request)
Description copied from interface:ChecksummerGiven a payload, calculate a checksum and add it to the request.- Specified by:
checksumin interfaceChecksummer
-
checksum
public CompletableFuture<org.reactivestreams.Publisher<ByteBuffer>> checksum(org.reactivestreams.Publisher<ByteBuffer> payload, SdkHttpRequest.Builder request)
Description copied from interface:ChecksummerGiven a payload, asynchronously calculate a checksum and promise to add it to the request.- Specified by:
checksumin interfaceChecksummer
-
-