public class AWS4UnsignedPayloadSigner extends AWS4Signer
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.
doubleUrlEncode, log, overriddenDate, regionName, serviceName
EMPTY_STRING_SHA256_HEX
Constructor and Description |
---|
AWS4UnsignedPayloadSigner() |
AWS4UnsignedPayloadSigner(SdkClock clock) |
Modifier and Type | Method and Description |
---|---|
protected String |
calculateContentHash(SignableRequest<?> request)
Calculate the hash of the request's payload.
|
void |
sign(SignableRequest<?> request,
AWSCredentials credentials)
Sign the given request with the given set of credentials.
|
addHostHeader, addSessionCredentials, calculateContentHashPresign, computeSignature, createCanonicalRequest, createStringToSign, getCanonicalizedHeaderString, getOverriddenDate, getRegionName, getServiceName, getSignedHeadersString, newSigningKey, presignRequest, processRequestPayload, setOverrideDate, setRegionName, setServiceName, shouldExcludeHeaderFromSigning
getBinaryRequestPayload, getBinaryRequestPayloadStream, getBinaryRequestPayloadStreamWithoutQueryParams, getBinaryRequestPayloadWithoutQueryParams, getCanonicalizedEndpoint, getCanonicalizedQueryString, getCanonicalizedQueryString, getCanonicalizedResourcePath, getCanonicalizedResourcePath, getRequestPayload, getRequestPayloadWithoutQueryParams, getSignatureDate, getTimeOffset, hash, hash, hash, newString, sanitizeCredentials, sign, sign, signAndBase64Encode, signAndBase64Encode, signWithMac
public AWS4UnsignedPayloadSigner()
public AWS4UnsignedPayloadSigner(SdkClock clock)
public void sign(SignableRequest<?> request, AWSCredentials credentials)
Signer
sign
in interface Signer
sign
in class AWS4Signer
request
- The request to sign.credentials
- The credentials to sign the request with.protected String calculateContentHash(SignableRequest<?> request)
AWS4Signer
calculateContentHash
in class AWS4Signer
Copyright © 2024. All rights reserved.