public final class AwsS3V4Signer extends AbstractAws4Signer<AwsS3V4SignerParams,Aws4PresignerParams>
EMPTY_STRING_SHA256_HEX
Modifier and Type | Method and Description |
---|---|
protected String |
calculateContentHash(SdkHttpFullRequest.Builder mutableRequest,
AwsS3V4SignerParams signerParams)
Returns the pre-defined header value and set other necessary headers if
the request needs to be chunk-encoded.
|
protected String |
calculateContentHashPresign(SdkHttpFullRequest.Builder mutableRequest,
Aws4PresignerParams signerParams) |
static AwsS3V4Signer |
create() |
SdkHttpFullRequest |
presign(SdkHttpFullRequest request,
Aws4PresignerParams signingParams)
A method to pre sign the given #request.
|
SdkHttpFullRequest |
presign(SdkHttpFullRequest request,
ExecutionAttributes executionAttributes) |
protected void |
processRequestPayload(SdkHttpFullRequest.Builder mutableRequest,
byte[] signature,
byte[] signingKey,
Aws4SignerRequestParams signerRequestParams,
AwsS3V4SignerParams signerParams)
If necessary, creates a chunk-encoding wrapper on the request payload.
|
SdkHttpFullRequest |
sign(SdkHttpFullRequest request,
AwsS3V4SignerParams signingParams)
A method to sign the given #request.
|
SdkHttpFullRequest |
sign(SdkHttpFullRequest request,
ExecutionAttributes executionAttributes) |
addSessionCredentials, deriveSigningKey, doPresign, doSign, extractPresignerParams, extractSignerParams
getBinaryRequestPayloadStream, getCanonicalizedEndpoint, getCanonicalizedQueryString, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
public static AwsS3V4Signer create()
public SdkHttpFullRequest sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
public SdkHttpFullRequest sign(SdkHttpFullRequest request, AwsS3V4SignerParams signingParams)
AwsS3V4Signer
class.request
- The request to signsigningParams
- Class with the parameters used for signing the requestpublic SdkHttpFullRequest presign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
public SdkHttpFullRequest presign(SdkHttpFullRequest request, Aws4PresignerParams signingParams)
Aws4PresignerParams
class.request
- The request to pre-signsigningParams
- Class with the parameters used for pre signing the requestprotected void processRequestPayload(SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, AwsS3V4SignerParams signerParams)
processRequestPayload
in class AbstractAws4Signer<AwsS3V4SignerParams,Aws4PresignerParams>
protected String calculateContentHashPresign(SdkHttpFullRequest.Builder mutableRequest, Aws4PresignerParams signerParams)
calculateContentHashPresign
in class AbstractAws4Signer<AwsS3V4SignerParams,Aws4PresignerParams>
protected String calculateContentHash(SdkHttpFullRequest.Builder mutableRequest, AwsS3V4SignerParams signerParams)
calculateContentHash
in class AbstractAws4Signer<AwsS3V4SignerParams,Aws4PresignerParams>
Copyright © 2019. All rights reserved.