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
-
public final class Aws4UnsignedPayloadSigner extends BaseAws4Signer
Exactly the same asAws4Signer
except if the request is being sent over HTTPS, then it returns the stringUNSIGNED-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
Fields Modifier and Type Field Description static String
UNSIGNED_PAYLOAD
-
Fields inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
EMPTY_STRING_SHA256_HEX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class software.amazon.awssdk.auth.signer.internal.BaseAws4Signer
calculateContentHashPresign, presign, presign, processRequestPayload, processRequestPayload
-
Methods inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
addSessionCredentials, calculateContentHash, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParams
-
Methods inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAwsSigner
getBinaryRequestPayloadStream, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.signer.Signer
credentialType
-
-
-
-
Field Detail
-
UNSIGNED_PAYLOAD
public static final String UNSIGNED_PAYLOAD
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static Aws4UnsignedPayloadSigner create()
-
sign
public SdkHttpFullRequest sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
- Specified by:
sign
in interfaceSigner
- Overrides:
sign
in classBaseAws4Signer
-
sign
public SdkHttpFullRequest sign(SdkHttpFullRequest request, Aws4SignerParams signingParams)
- Overrides:
sign
in classBaseAws4Signer
-
calculateContentHash
protected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, Aws4SignerParams signerParams, SdkChecksum contentFlexibleChecksum)
Description copied from class:AbstractAws4Signer
This method overloads calculateContentHash with contentFlexibleChecksum. The contentFlexibleChecksum is computed at the same time while hash is calculated for Content.- Overrides:
calculateContentHash
in classAbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
-
-