public abstract class BaseEventStreamAsyncAws4Signer extends BaseAsyncAws4Signer
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_STREAM_DATE |
static String |
EVENT_STREAM_SIGNATURE |
EMPTY_STRING_SHA256_HEX
Modifier | Constructor and Description |
---|---|
protected |
BaseEventStreamAsyncAws4Signer() |
Modifier and Type | Method and Description |
---|---|
protected String |
calculateContentHash(SdkHttpFullRequest.Builder mutableRequest,
Aws4SignerParams signerParams)
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,
byte[] signingKey,
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
|
signAsync, signAsyncRequestBody
calculateContentHashPresign, presign, presign, processRequestPayload
addSessionCredentials, deriveSigningKey, doPresign, doSign, extractPresignerParams, extractSignerParams
getBinaryRequestPayloadStream, getCanonicalizedEndpoint, getCanonicalizedQueryString, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
public static final String EVENT_STREAM_SIGNATURE
public static final String EVENT_STREAM_DATE
public SdkHttpFullRequest sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
sign
in interface Signer
sign
in class BaseAws4Signer
public SdkHttpFullRequest sign(SdkHttpFullRequest request, Aws4SignerParams signingParams)
sign
in class BaseAws4Signer
protected AsyncRequestBody transformRequestProvider(String headerSignature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams, AsyncRequestBody asyncRequestBody)
BaseAsyncAws4Signer
transformRequestProvider
in class BaseAsyncAws4Signer
protected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, Aws4SignerParams signerParams)
calculateContentHash
in class AbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
Copyright © 2019. All rights reserved.