public static final class DefaultS3Presigner.Builder extends DefaultSdkPresigner.Builder<DefaultS3Presigner.Builder> implements S3Presigner.Builder
| Modifier and Type | Method and Description |
|---|---|
S3Presigner |
build()
Build the presigner using the configuration on this builder.
|
DefaultS3Presigner.Builder |
disableS3ExpressSessionAuth(Boolean disableS3ExpressSessionAuth)
Explicitly disable using S3 express session credentials when presigning a request with an S3 express bucket name.
|
DefaultS3Presigner.Builder |
s3Client(S3Client s3Client)
Supply an S3 client for presigning S3 express requests that require S3 express session credentials,
S3ExpressSessionCredentials. |
DefaultS3Presigner.Builder |
serviceConfiguration(S3Configuration serviceConfiguration)
Allows providing a custom S3 serviceConfiguration by providing a
S3Configuration object;
Note: chunkedEncodingEnabled and checksumValidationEnabled do not apply to presigned requests. |
credentialsProvider, credentialsProvider, dualstackEnabled, endpointOverride, fipsEnabled, regionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentialsProvider, credentialsProvider, dualstackEnabled, endpointOverride, fipsEnabled, regionpublic DefaultS3Presigner.Builder serviceConfiguration(S3Configuration serviceConfiguration)
S3Configuration object;
Note: chunkedEncodingEnabled and checksumValidationEnabled do not apply to presigned requests.serviceConfiguration in interface S3Presigner.BuilderserviceConfiguration - S3Configurationpublic DefaultS3Presigner.Builder disableS3ExpressSessionAuth(Boolean disableS3ExpressSessionAuth)
S3Presigner.BuilderS3ExpressSessionCredentials will be used for presigning
the request if an S3Presigner.Builder.s3Client(S3Client) is also configured on the presigner.
Note: If this option and S3Presigner.Builder.s3Client(S3Client) is not configured, S3 express presigning works,
but session auth will be disabled
disableS3ExpressSessionAuth in interface S3Presigner.BuilderdisableS3ExpressSessionAuth - - whether to disable S3 express session auth or notpublic DefaultS3Presigner.Builder s3Client(S3Client s3Client)
S3Presigner.BuilderS3ExpressSessionCredentials. These session credentials are short-lived. If the client isn't supplied, a
presigned request targeting an S3 express bucket will use standard Sigv4 credentials for signing.
This results in the same behavior as disabling S3 session auth using S3Presigner.Builder.disableS3ExpressSessionAuth(Boolean).
Note: If this option and S3Presigner.Builder.disableS3ExpressSessionAuth(Boolean) is not configured, S3 express presigning works,
but session auth will be disabled
s3Client in interface S3Presigner.Builders3Client - S3Clientpublic S3Presigner build()
SdkPresigner.Builderbuild in interface SdkPresigner.Builderbuild in interface S3Presigner.BuilderCopyright © 2026. All rights reserved.