Class PrecomputedSha256Checksummer
java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.PrecomputedSha256Checksummer
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture
<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.void
checksum
(ContentStreamProvider payload, SdkHttpRequest.Builder request) Given a payload, calculate a checksum and add it to the request.
-
Constructor Details
-
PrecomputedSha256Checksummer
-
-
Method Details
-
checksum
Description copied from interface:Checksummer
Given a payload, calculate a checksum and add it to the request.- Specified by:
checksum
in interfaceChecksummer
-
checksum
public CompletableFuture<org.reactivestreams.Publisher<ByteBuffer>> checksum(org.reactivestreams.Publisher<ByteBuffer> payload, SdkHttpRequest.Builder request) Description copied from interface:Checksummer
Given a payload, asynchronously calculate a checksum and promise to add it to the request.- Specified by:
checksum
in interfaceChecksummer
-