Class BaseEventStreamAsyncAws4Signer
- 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.internal.BaseAsyncAws4Signer
-
- software.amazon.awssdk.auth.signer.internal.BaseEventStreamAsyncAws4Signer
-
- All Implemented Interfaces:
AsyncRequestBodySigner
,Presigner
,Signer
- Direct Known Subclasses:
EventStreamAws4Signer
public abstract class BaseEventStreamAsyncAws4Signer extends BaseAsyncAws4Signer
-
-
Field Summary
Fields Modifier and Type Field Description static String
EVENT_STREAM_DATE
static String
EVENT_STREAM_SIGNATURE
-
Fields inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
EMPTY_STRING_SHA256_HEX
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseEventStreamAsyncAws4Signer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, Aws4SignerParams signerParams, SdkChecksum contentFlexibleChecksum)
Returns the pre-defined header value and set other necessary headers if the request needs to be chunk-encoded.SdkHttpFullRequest
sign(SdkHttpFullRequest request, Aws4SignerParams signingParams)
SdkHttpFullRequest
sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
protected AsyncRequestBody
transformRequestProvider(String headerSignature, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams, AsyncRequestBody asyncRequestBody)
Transform the original requestProvider by adding signing operator and returns a new requestProvider Can be overriden by subclasses to provide specific signing method-
Methods inherited from class software.amazon.awssdk.auth.signer.internal.BaseAsyncAws4Signer
signAsync, signAsyncRequestBody
-
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
-
EVENT_STREAM_SIGNATURE
public static final String EVENT_STREAM_SIGNATURE
- See Also:
- Constant Field Values
-
EVENT_STREAM_DATE
public static final String EVENT_STREAM_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
transformRequestProvider
protected AsyncRequestBody transformRequestProvider(String headerSignature, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams, AsyncRequestBody asyncRequestBody)
Description copied from class:BaseAsyncAws4Signer
Transform the original requestProvider by adding signing operator and returns a new requestProvider Can be overriden by subclasses to provide specific signing method- Specified by:
transformRequestProvider
in classBaseAsyncAws4Signer
-
calculateContentHash
protected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, Aws4SignerParams signerParams, SdkChecksum contentFlexibleChecksum)
Returns the pre-defined header value and set other necessary headers if the request needs to be chunk-encoded. Otherwise calls the superclass method which calculates the hash of the whole content for signing.- Overrides:
calculateContentHash
in classAbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
-
-