protected static class Aws4SignerParams.BuilderImpl<B extends Aws4SignerParams.Builder> extends Object implements Aws4SignerParams.Builder<B>
Modifier | Constructor and Description |
---|---|
protected |
BuilderImpl() |
Modifier and Type | Method and Description |
---|---|
B |
awsCredentials(AwsCredentials awsCredentials)
Sets the aws credentials to use for computing the signature.
|
Aws4SignerParams |
build() |
B |
doubleUrlEncode(Boolean doubleUrlEncode)
Set this value to double url-encode the resource path when constructing the
canonical request.
|
void |
setAwsCredentials(AwsCredentials awsCredentials) |
void |
setDoubleUrlEncode(Boolean doubleUrlEncode) |
void |
setSigningClockOverride(Clock signingClockOverride) |
void |
setSigningName(String signingName) |
void |
setSigningRegion(Region signingRegion) |
void |
setTimeOffset(Integer timeOffset) |
B |
signingClockOverride(Clock signingClockOverride)
The clock to use for overriding the signing time when computing signature for a request.
|
B |
signingName(String signingName)
The name of the AWS service to be used for computing the signature.
|
B |
signingRegion(Region signingRegion)
The AWS region to be used for computing the signature.
|
B |
timeOffset(Integer timeOffset)
The time offset (for clock skew correction) to use when computing the signing date for the request.
|
public B doubleUrlEncode(Boolean doubleUrlEncode)
Aws4SignerParams.Builder
doubleUrlEncode
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
doubleUrlEncode
- Set true to enable double url encoding. Otherwise false.public void setDoubleUrlEncode(Boolean doubleUrlEncode)
public B awsCredentials(AwsCredentials awsCredentials)
Aws4SignerParams.Builder
awsCredentials
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
awsCredentials
- Aws Credentials to use for computing the signature.public void setAwsCredentials(AwsCredentials awsCredentials)
public B signingName(String signingName)
Aws4SignerParams.Builder
signingName
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
signingName
- Name of the AWS service to be used for computing the signature.public void setSigningName(String signingName)
public B signingRegion(Region signingRegion)
Aws4SignerParams.Builder
signingRegion
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
signingRegion
- AWS region to be used for computing the signature.public void setSigningRegion(Region signingRegion)
public B timeOffset(Integer timeOffset)
Aws4SignerParams.Builder
timeOffset
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
timeOffset
- The time offset (for clock skew correction) to use when computing the signing date for the request.public void setTimeOffset(Integer timeOffset)
public B signingClockOverride(Clock signingClockOverride)
Aws4SignerParams.Builder
signingClockOverride
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
signingClockOverride
- The clock to use for overriding the signing time when computing signature for a request.public void setSigningClockOverride(Clock signingClockOverride)
public Aws4SignerParams build()
build
in interface Aws4SignerParams.Builder<B extends Aws4SignerParams.Builder>
Copyright © 2019. All rights reserved.