Class Aws4SignerParams.BuilderImpl<B extends Aws4SignerParams.Builder<B>>
java.lang.Object
software.amazon.awssdk.auth.signer.params.Aws4SignerParams.BuilderImpl<B>
- All Implemented Interfaces:
Aws4SignerParams.Builder<B>
- Enclosing class:
- Aws4SignerParams
protected static class Aws4SignerParams.BuilderImpl<B extends Aws4SignerParams.Builder<B>>
extends Object
implements Aws4SignerParams.Builder<B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsCredentials(AwsCredentials awsCredentials) Sets the aws credentials to use for computing the signature.build()checksumParams(SignerChecksumParams checksumParams) Checksum params required to compute the Checksum while data is read for signing the Checksum.doubleUrlEncode(Boolean doubleUrlEncode) Set this value to double url-encode the resource path when constructing the canonical request.normalizePath(Boolean normalizePath) Whether the resource path should be "normalized" according to RFC3986 when constructing the canonical request.voidsetAwsCredentials(AwsCredentials awsCredentials) voidsetDoubleUrlEncode(Boolean doubleUrlEncode) voidsetNormalizePath(Boolean normalizePath) voidsetSigningClockOverride(Clock signingClockOverride) voidsetSigningName(String signingName) voidsetSigningRegion(Region signingRegion) voidsetTimeOffset(Integer timeOffset) signingClockOverride(Clock signingClockOverride) The clock to use for overriding the signing time when computing signature for a request.signingName(String signingName) The name of the AWS service to be used for computing the signature.signingRegion(Region signingRegion) The AWS region to be used for computing the signature.timeOffset(Integer timeOffset) The time offset (for clock skew correction) to use when computing the signing date for the request.
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
doubleUrlEncode
Description copied from interface:Aws4SignerParams.BuilderSet this value to double url-encode the resource path when constructing the canonical request. By default, all services except S3 enable double url-encoding.- Specified by:
doubleUrlEncodein interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
doubleUrlEncode- Set true to enable double url encoding. Otherwise false.
-
setDoubleUrlEncode
-
normalizePath
Description copied from interface:Aws4SignerParams.BuilderWhether the resource path should be "normalized" according to RFC3986 when constructing the canonical request. By default, all services except S3 enable resource path normalization.- Specified by:
normalizePathin interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>
-
setNormalizePath
-
awsCredentials
Description copied from interface:Aws4SignerParams.BuilderSets the aws credentials to use for computing the signature.- Specified by:
awsCredentialsin interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
awsCredentials- Aws Credentials to use for computing the signature.
-
setAwsCredentials
-
signingName
Description copied from interface:Aws4SignerParams.BuilderThe name of the AWS service to be used for computing the signature.- Specified by:
signingNamein interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
signingName- Name of the AWS service to be used for computing the signature.
-
setSigningName
-
signingRegion
Description copied from interface:Aws4SignerParams.BuilderThe AWS region to be used for computing the signature.- Specified by:
signingRegionin interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
signingRegion- AWS region to be used for computing the signature.
-
setSigningRegion
-
timeOffset
Description copied from interface:Aws4SignerParams.BuilderThe time offset (for clock skew correction) to use when computing the signing date for the request.- Specified by:
timeOffsetin interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
timeOffset- The time offset (for clock skew correction) to use when computing the signing date for the request.
-
setTimeOffset
-
signingClockOverride
Description copied from interface:Aws4SignerParams.BuilderThe clock to use for overriding the signing time when computing signature for a request. By default, current time of the system is used for signing. This parameter can be used to set custom signing time. Useful option for testing.- Specified by:
signingClockOverridein interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
signingClockOverride- The clock to use for overriding the signing time when computing signature for a request.
-
checksumParams
Description copied from interface:Aws4SignerParams.BuilderChecksum params required to compute the Checksum while data is read for signing the Checksum.- Specified by:
checksumParamsin interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>- Parameters:
checksumParams- SignerChecksumParams that defines the Algorithm and headers to pass Checksum.- Returns:
-
setSigningClockOverride
-
build
- Specified by:
buildin interfaceAws4SignerParams.Builder<B extends Aws4SignerParams.Builder<B>>
-