Interface S3ExpressSessionCredentials
-
- All Superinterfaces:
AwsCredentialsIdentity
,Identity
- All Known Implementing Classes:
DefaultS3ExpressSessionCredentials
public interface S3ExpressSessionCredentials extends AwsCredentialsIdentity
Session credentials used byS3ExpressAuthScheme
.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 standardAwsCredentialsIdentity
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 withS3Client
whenS3BaseClientBuilder.disableS3ExpressSessionAuth(Boolean)
is not true.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.awssdk.identity.spi.AwsCredentialsIdentity
AwsCredentialsIdentity.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method 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 providedSessionCredentials
.String
sessionToken()
Retrieve the S3 express token.-
Methods inherited from interface software.amazon.awssdk.identity.spi.AwsCredentialsIdentity
accessKeyId, secretAccessKey
-
Methods inherited from interface software.amazon.awssdk.identity.spi.Identity
expirationTime
-
-
-
-
Method Detail
-
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
static S3ExpressSessionCredentials fromSessionResponse(SessionCredentials credentials)
Create S3 express session credentials for the providedSessionCredentials
.
-
-