T
- Type of the signing params class that is used for signing the requestU
- Type of the signing params class that is used for pre signing the requestpublic abstract class AbstractAws4Signer<T extends Aws4SignerParams,U extends Aws4PresignerParams> extends AbstractAwsSigner implements Presigner
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_STRING_SHA256_HEX |
Constructor and Description |
---|
AbstractAws4Signer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSessionCredentials(SdkHttpFullRequest.Builder mutableRequest,
AwsSessionCredentials credentials)
Adds session credentials to the request given.
|
protected String |
calculateContentHash(SdkHttpFullRequest.Builder mutableRequest,
T signerParams)
Calculate the hash of the request's payload.
|
protected abstract String |
calculateContentHashPresign(SdkHttpFullRequest.Builder mutableRequest,
U signerParams) |
protected byte[] |
deriveSigningKey(AwsCredentials credentials,
Aws4SignerRequestParams signerRequestParams)
Step 3 of the AWS Signature version 4 calculation.
|
protected SdkHttpFullRequest.Builder |
doPresign(SdkHttpFullRequest request,
Aws4SignerRequestParams requestParams,
U signingParams) |
protected SdkHttpFullRequest.Builder |
doSign(SdkHttpFullRequest request,
Aws4SignerRequestParams requestParams,
T signingParams) |
protected <B extends Aws4PresignerParams.Builder> |
extractPresignerParams(B builder,
ExecutionAttributes executionAttributes) |
protected <B extends Aws4SignerParams.Builder> |
extractSignerParams(B paramsBuilder,
ExecutionAttributes executionAttributes) |
protected abstract void |
processRequestPayload(SdkHttpFullRequest.Builder mutableRequest,
byte[] signature,
byte[] signingKey,
Aws4SignerRequestParams signerRequestParams,
T signerParams) |
getBinaryRequestPayloadStream, getCanonicalizedEndpoint, getCanonicalizedQueryString, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
public static final String EMPTY_STRING_SHA256_HEX
protected SdkHttpFullRequest.Builder doSign(SdkHttpFullRequest request, Aws4SignerRequestParams requestParams, T signingParams)
protected SdkHttpFullRequest.Builder doPresign(SdkHttpFullRequest request, Aws4SignerRequestParams requestParams, U signingParams)
protected void addSessionCredentials(SdkHttpFullRequest.Builder mutableRequest, AwsSessionCredentials credentials)
AbstractAwsSigner
addSessionCredentials
in class AbstractAwsSigner
mutableRequest
- The request to add session credentials information tocredentials
- The session credentials to add to the requestprotected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, T signerParams)
protected abstract void processRequestPayload(SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, T signerParams)
protected abstract String calculateContentHashPresign(SdkHttpFullRequest.Builder mutableRequest, U signerParams)
protected byte[] deriveSigningKey(AwsCredentials credentials, Aws4SignerRequestParams signerRequestParams)
protected <B extends Aws4PresignerParams.Builder> B extractPresignerParams(B builder, ExecutionAttributes executionAttributes)
protected <B extends Aws4SignerParams.Builder> B extractSignerParams(B paramsBuilder, ExecutionAttributes executionAttributes)
Copyright © 2019. All rights reserved.