Interface S3ExpressSessionCredentials
- All Superinterfaces:
AwsCredentialsIdentity
,Identity
- All Known Implementing Classes:
DefaultS3ExpressSessionCredentials
Session credentials used by
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 AwsCredentialsIdentity
s, 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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.identity.spi.AwsCredentialsIdentity
AwsCredentialsIdentity.Builder
-
Method Summary
Modifier and TypeMethodDescriptionstatic S3ExpressSessionCredentials
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 providedSessionCredentials
.Retrieve the S3 express token.Methods inherited from interface software.amazon.awssdk.identity.spi.AwsCredentialsIdentity
accessKeyId, accountId, secretAccessKey
Methods inherited from interface software.amazon.awssdk.identity.spi.Identity
expirationTime, providerName
-
Method Details
-
sessionToken
String sessionToken()Retrieve the S3 express token. -
create
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. -
fromSessionResponse
Create S3 express session credentials for the providedSessionCredentials
.
-