public final class Aws4UnsignedPayloadSigner extends BaseAws4Signer
Aws4Signer except if the request is being sent
over HTTPS, then it returns the string UNSIGNED-PAYLOAD as the
content SHA-256 so services that support it can avoid needing to calculate
the value when authorizing the request.
Payloads are still signed for requests over HTTP to preserve the request integrity over a non-secure transport.
| Modifier and Type | Field and Description |
|---|---|
static String |
UNSIGNED_PAYLOAD |
EMPTY_STRING_SHA256_HEX| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateContentHash(SdkHttpFullRequest.Builder mutableRequest,
Aws4SignerParams signerParams,
SdkChecksum contentFlexibleChecksum)
This method overloads calculateContentHash with contentFlexibleChecksum.
|
static Aws4UnsignedPayloadSigner |
create() |
SdkHttpFullRequest |
sign(SdkHttpFullRequest request,
Aws4SignerParams signingParams) |
SdkHttpFullRequest |
sign(SdkHttpFullRequest request,
ExecutionAttributes executionAttributes) |
calculateContentHashPresign, presign, presign, processRequestPayload, processRequestPayloadaddSessionCredentials, calculateContentHash, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParamsgetBinaryRequestPayloadStream, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMacclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentialTypepublic static final String UNSIGNED_PAYLOAD
public static Aws4UnsignedPayloadSigner create()
public SdkHttpFullRequest sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
sign in interface Signersign in class BaseAws4Signerpublic SdkHttpFullRequest sign(SdkHttpFullRequest request, Aws4SignerParams signingParams)
sign in class BaseAws4Signerprotected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, Aws4SignerParams signerParams, SdkChecksum contentFlexibleChecksum)
AbstractAws4SignercalculateContentHash in class AbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>Copyright © 2023. All rights reserved.