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, processRequestPayload
addSessionCredentials, calculateContentHash, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParams
getBinaryRequestPayloadStream, getCanonicalizedEndpoint, getCanonicalizedQueryString, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
public static final String UNSIGNED_PAYLOAD
public static Aws4UnsignedPayloadSigner create()
public SdkHttpFullRequest sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
sign
in interface Signer
sign
in class BaseAws4Signer
public SdkHttpFullRequest sign(SdkHttpFullRequest request, Aws4SignerParams signingParams)
sign
in class BaseAws4Signer
protected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, Aws4SignerParams signerParams, SdkChecksum contentFlexibleChecksum)
AbstractAws4Signer
calculateContentHash
in class AbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
Copyright © 2022. All rights reserved.