public interface S3ExpressSessionCredentials extends AwsCredentialsIdentity
S3ExpressAuthScheme.
While these contain the same information as AwsCredentialsIdentity, they are only valid for accessing S3 express,
and they are only valid for use when accessing a single bucket. S3 express is able to validate these credentials more quickly
than standard AwsCredentialsIdentitys, reducing the latency required for each request.
Users of the SDK should not need to create this themselves. These credentials are created automatically by the
S3ExpressAuthScheme that is automatically included with S3Client when
S3BaseClientBuilder.disableS3ExpressSessionAuth(Boolean) is not true.
AwsCredentialsIdentity.Builder| Modifier and Type | Method and Description |
|---|---|
static S3ExpressSessionCredentials |
create(String accessKeyId,
String secretAccessKey,
String sessionToken)
Create S3 express session credentials for the provided access key ID, secret access key and session token.
|
static S3ExpressSessionCredentials |
fromSessionResponse(SessionCredentials credentials)
Create S3 express session credentials for the provided
SessionCredentials. |
String |
sessionToken()
Retrieve the S3 express token.
|
accessKeyId, accountId, builder, create, secretAccessKeyexpirationTime, providerNameString sessionToken()
static S3ExpressSessionCredentials create(String accessKeyId, String secretAccessKey, String sessionToken)
static S3ExpressSessionCredentials fromSessionResponse(SessionCredentials credentials)
SessionCredentials.Copyright © 2026. All rights reserved.