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 SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionFlexibleChecksummer(PayloadChecksumStore cache, FlexibleChecksummer.Option... options) 
- 
Method SummaryModifier 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.voidchecksum(ContentStreamProvider payload, SdkHttpRequest.Builder request) Given a payload, calculate a checksum and add it to the request.option()
- 
Constructor Details- 
FlexibleChecksummer
 
- 
- 
Method Details- 
checksumDescription copied from interface:ChecksummerGiven a payload, calculate a checksum and add it to the request.- Specified by:
- checksumin interface- Checksummer
 
- 
checksumpublic 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 interface- Checksummer
 
- 
option
 
-