Class FlexibleChecksummer
java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.FlexibleChecksummer
- All Implemented Interfaces:
Checksummer
A "flexible" implementation of a checksummer. It takes a map of checksums and their header names, computes them efficiently by
updating each checksum while reading the payload (once), and adds the computed checksum strings to the request using the given
header names in the map. This should be used in cases where a (flexible) checksum algorithm is present during signing.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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.option()
-
Constructor Details
-
FlexibleChecksummer
-
-
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
-
option
-