Class DefaultV4RequestSigner
- java.lang.Object
-
- software.amazon.awssdk.http.auth.aws.internal.signer.DefaultV4RequestSigner
-
- All Implemented Interfaces:
V4RequestSigner
public final class DefaultV4RequestSigner extends Object implements V4RequestSigner
The default implementation of a v4-request-signer. It performs each step of the SigV4 signing process, but does not add the signature or auth information to the request itself.All signing information, such as signature, signing key, canonical request, etc. is present in result object that is returned. This can be used by the caller to add the auth info to the request, such as adding the signature as a query parameter or building an authorization header using the signature and canonical request headers.
-
-
Constructor Summary
Constructors Constructor Description DefaultV4RequestSigner(V4Properties properties, String contentHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V4RequestSigningResultsign(SdkHttpRequest.Builder requestBuilder)Given a request builder, sign the request and return a result containing the signed request and its properties.
-
-
-
Constructor Detail
-
DefaultV4RequestSigner
public DefaultV4RequestSigner(V4Properties properties, String contentHash)
-
-
Method Detail
-
sign
public V4RequestSigningResult sign(SdkHttpRequest.Builder requestBuilder)
Description copied from interface:V4RequestSignerGiven a request builder, sign the request and return a result containing the signed request and its properties.- Specified by:
signin interfaceV4RequestSigner
-
-