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.
EMPTY_STRING_SHA256_HEX
Constructor and Description |
---|
AWS4UnsignedPayloadSigner() |
AWS4UnsignedPayloadSigner(SdkClock clock) |
Modifier and Type | Method and Description |
---|---|
void |
sign(SignableRequest<?> request,
AWSCredentials credentials)
Sign the given request with the given set of credentials.
|
getOverriddenDate, getRegionName, getServiceName, presignRequest, setEndpointPrefix, setOverrideDate, setRegionFromEndpointResolver, setRegionName, setServiceName
hash, hash, sign, 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.