Class DefaultAwsV4HttpSigner
java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.DefaultAwsV4HttpSigner
- All Implemented Interfaces:
AwsV4FamilyHttpSigner<AwsCredentialsIdentity>
,AwsV4HttpSigner
,HttpSigner<AwsCredentialsIdentity>
An implementation of a
AwsV4HttpSigner
that uses properties to compose v4-signers in order to delegate signing of a
request and payload (if applicable) accordingly.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.http.auth.aws.signer.AwsV4FamilyHttpSigner
AwsV4FamilyHttpSigner.AuthLocation
-
Field Summary
Fields inherited from interface software.amazon.awssdk.http.auth.aws.signer.AwsV4FamilyHttpSigner
AUTH_LOCATION, CHECKSUM_ALGORITHM, CHUNK_ENCODING_ENABLED, DOUBLE_URL_ENCODE, EXPIRATION_DURATION, NORMALIZE_PATH, PAYLOAD_SIGNING_ENABLED, SERVICE_SIGNING_NAME
Fields inherited from interface software.amazon.awssdk.http.auth.aws.signer.AwsV4HttpSigner
REGION_NAME
Fields inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
SIGNING_CLOCK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsign
(SignRequest<? extends AwsCredentialsIdentity> request) Method that takes in inputs to sign a request with sync payload and returns a signed version of the request.signAsync
(AsyncSignRequest<? extends AwsCredentialsIdentity> request) Method that takes in inputs to sign a request with async payload and returns a future containing the signed version of the request.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
sign, signAsync
-
Constructor Details
-
DefaultAwsV4HttpSigner
public DefaultAwsV4HttpSigner()
-
-
Method Details
-
sign
Description copied from interface:HttpSigner
Method that takes in inputs to sign a request with sync payload and returns a signed version of the request.- Specified by:
sign
in interfaceHttpSigner<AwsCredentialsIdentity>
- Parameters:
request
- The inputs to sign a request.- Returns:
- A signed version of the request.
-
signAsync
public CompletableFuture<AsyncSignedRequest> signAsync(AsyncSignRequest<? extends AwsCredentialsIdentity> request) Description copied from interface:HttpSigner
Method that takes in inputs to sign a request with async payload and returns a future containing the signed version of the request.- Specified by:
signAsync
in interfaceHttpSigner<AwsCredentialsIdentity>
- Parameters:
request
- The inputs to sign a request.- Returns:
- A future containing the signed version of the request.
-