Class PrecomputedSha256Checksummer
java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.PrecomputedSha256Checksummer
- All Implemented Interfaces:
- Checksummer
@SdkInternalApi
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 SummaryConstructors
- 
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.
- 
Constructor Details- 
PrecomputedSha256Checksummer
 
- 
- 
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
 
 
-