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.
EMPTY_STRING_SHA256_HEX| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateContentHash(SdkHttpFullRequest.Builder mutableRequest,
Aws4SignerParams signerParams)
Calculate the hash of the request's payload.
|
static Aws4UnsignedPayloadSigner |
create() |
SdkHttpFullRequest |
sign(SdkHttpFullRequest request,
Aws4SignerParams signingParams) |
SdkHttpFullRequest |
sign(SdkHttpFullRequest request,
ExecutionAttributes executionAttributes) |
calculateContentHashPresign, presign, presign, processRequestPayloadaddSessionCredentials, deriveSigningKey, doPresign, doSign, extractPresignerParams, extractSignerParamsgetBinaryRequestPayloadStream, getCanonicalizedEndpoint, getCanonicalizedQueryString, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMacpublic 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)
AbstractAws4SignercalculateContentHash in class AbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>Copyright © 2019. All rights reserved.