Class Aws4UnsignedPayloadSigner
java.lang.Object
software.amazon.awssdk.auth.signer.internal.AbstractAwsSigner
software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
software.amazon.awssdk.auth.signer.internal.BaseAws4Signer
software.amazon.awssdk.auth.signer.Aws4UnsignedPayloadSigner
Exactly the same as
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.
-
Field Summary
FieldsFields inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
EMPTY_STRING_SHA256_HEX
-
Method Summary
Modifier and TypeMethodDescriptionstatic Aws4UnsignedPayloadSigner
create()
sign
(SdkHttpFullRequest request, Aws4SignerParams signingParams) sign
(SdkHttpFullRequest request, ExecutionAttributes executionAttributes) Method that takes in an request and returns a signed version of the request.Methods inherited from class software.amazon.awssdk.auth.signer.internal.BaseAws4Signer
presign, presign
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.signer.Signer
credentialType
-
Field Details
-
UNSIGNED_PAYLOAD
- See Also:
-
-
Method Details
-
create
-
sign
Description copied from interface:Signer
Method that takes in an request and returns a signed version of the request.- Specified by:
sign
in interfaceSigner
- Overrides:
sign
in classBaseAws4Signer
- Parameters:
request
- The request to signexecutionAttributes
- Contains the attributes required for signing the request- Returns:
- A signed version of the input request
-
sign
- Overrides:
sign
in classBaseAws4Signer
-