public class AwsSigner extends Object
| Constructor and Description |
|---|
AwsSigner() |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<AwsSigningResult> |
sign(HttpRequest request,
AwsSigningConfig config)
Signs an http request according to the supplied signing configuration
|
static CompletableFuture<AwsSigningResult> |
sign(HttpRequestBodyStream chunkBody,
byte[] previousSignature,
AwsSigningConfig config)
Signs a body chunk according to the supplied signing configuration
|
static CompletableFuture<byte[]> |
signChunk(HttpRequestBodyStream chunkBody,
byte[] previousSignature,
AwsSigningConfig config)
Signs a body chunk according to the supplied signing configuration
|
static CompletableFuture<HttpRequest> |
signRequest(HttpRequest request,
AwsSigningConfig config)
Signs an http request according to the supplied signing configuration
|
public static CompletableFuture<HttpRequest> signRequest(HttpRequest request, AwsSigningConfig config)
request - http request to signconfig - signing configurationpublic static CompletableFuture<byte[]> signChunk(HttpRequestBodyStream chunkBody, byte[] previousSignature, AwsSigningConfig config)
chunkBody - stream of bytes that make up the chunkpreviousSignature - the signature of the previous component of the request: either the request itself for
the first chunk, or the previous chunk otherwiseconfig - signing configurationpublic static CompletableFuture<AwsSigningResult> sign(HttpRequest request, AwsSigningConfig config)
request - http request to signconfig - signing configurationpublic static CompletableFuture<AwsSigningResult> sign(HttpRequestBodyStream chunkBody, byte[] previousSignature, AwsSigningConfig config)
chunkBody - stream of bytes that make up the chunkpreviousSignature - the signature of the previous component of the request: either the request itself for
the first chunk, or the previous chunk otherwiseconfig - signing configurationCopyright © 2021. All rights reserved.