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, serviceNameEMPTY_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, shouldExcludeHeaderFromSigninggetBinaryRequestPayload, getBinaryRequestPayloadStream, getBinaryRequestPayloadStreamWithoutQueryParams, getBinaryRequestPayloadWithoutQueryParams, getCanonicalizedEndpoint, getCanonicalizedQueryString, getCanonicalizedQueryString, getCanonicalizedResourcePath, getCanonicalizedResourcePath, getRequestPayload, getRequestPayloadWithoutQueryParams, getSignatureDate, getTimeOffset, hash, hash, hash, newString, sanitizeCredentials, sign, sign, signAndBase64Encode, signAndBase64Encode, signWithMacpublic AWS4UnsignedPayloadSigner()
public AWS4UnsignedPayloadSigner(SdkClock clock)
public void sign(SignableRequest<?> request, AWSCredentials credentials)
Signersign in interface Signersign in class AWS4Signerrequest - The request to sign.credentials - The credentials to sign the request with.protected String calculateContentHash(SignableRequest<?> request)
AWS4SignercalculateContentHash in class AWS4SignerCopyright © 2017. All rights reserved.