Class BaseAws4Signer
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
- Direct Known Subclasses:
AsyncAws4Signer,Aws4Signer,Aws4UnsignedPayloadSigner,BaseAsyncAws4Signer
@SdkInternalApi
@Deprecated
public abstract class BaseAws4Signer
extends AbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
Deprecated.
Abstract base class for concrete implementations of Aws4 signers.
-
Field Summary
Fields inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
EMPTY_STRING_SHA256_HEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcalculateContentHashPresign(SdkHttpFullRequest.Builder mutableRequest, Aws4PresignerParams signerParams) Deprecated.Calculate the hash of the request's payload.presign(SdkHttpFullRequest request, Aws4PresignerParams signingParams) Deprecated.presign(SdkHttpFullRequest requestToSign, ExecutionAttributes executionAttributes) Deprecated.protected voidprocessRequestPayload(SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams) Deprecated.Subclass could override this method to perform any additional procedure on the request payload, with access to the result from signing the header.protected voidprocessRequestPayload(SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams, SdkChecksum sdkChecksum) Deprecated.This method overloads processRequestPayload with sdkChecksum.sign(SdkHttpFullRequest request, Aws4SignerParams signingParams) Deprecated.sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes) Deprecated.Methods inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
addSessionCredentials, calculateContentHash, calculateContentHash, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParamsMethods inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAwsSigner
getBinaryRequestPayloadStream, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMacMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.signer.Signer
credentialType
-
Constructor Details
-
BaseAws4Signer
public BaseAws4Signer()Deprecated.
-
-
Method Details
-
sign
Deprecated. -
sign
Deprecated. -
presign
public SdkHttpFullRequest presign(SdkHttpFullRequest requestToSign, ExecutionAttributes executionAttributes) Deprecated. -
presign
Deprecated. -
processRequestPayload
protected void processRequestPayload(SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams) Deprecated.Subclass could override this method to perform any additional procedure on the request payload, with access to the result from signing the header. (e.g. Signing the payload by chunk-encoding). The default implementation doesn't need to do anything.- Specified by:
processRequestPayloadin classAbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
-
processRequestPayload
protected void processRequestPayload(SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, Aws4SignerRequestParams signerRequestParams, Aws4SignerParams signerParams, SdkChecksum sdkChecksum) Deprecated.This method overloads processRequestPayload with sdkChecksum. The sdkChecksum if passed, is computed while processing request payload.- Specified by:
processRequestPayloadin classAbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
-
calculateContentHashPresign
protected String calculateContentHashPresign(SdkHttpFullRequest.Builder mutableRequest, Aws4PresignerParams signerParams) Deprecated.Calculate the hash of the request's payload. In case of pre-sign, the existing code would generate the hash of an empty byte array and returns it. This method can be overridden by sub classes to provide different values (e.g) For S3 pre-signing, the content hash calculation is different from the general implementation.- Specified by:
calculateContentHashPresignin classAbstractAws4Signer<Aws4SignerParams,Aws4PresignerParams>
-