Interface AwsSessionCredentialsIdentity
- All Superinterfaces:
AwsCredentialsIdentity
,Identity
- All Known Implementing Classes:
AwsSessionCredentials
,DefaultAwsSessionCredentialsIdentity
A special type of
AwsCredentialsIdentity
that provides a session token to be used in service authentication. Session
tokens are typically provided by a token broker service, like AWS Security Token Service, and provide temporary access to an
AWS service.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a new session credentials object, with the specified AWS access key, AWS secret key and AWS session token.Retrieve the AWS session 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 AWS session token. This token is retrieved from an AWS token service, and is used for authenticating that this user has received temporary permission to access some resource. -
builder
-
create
static AwsSessionCredentialsIdentity create(String accessKeyId, String secretAccessKey, String sessionToken) Constructs a new session credentials object, with the specified AWS access key, AWS secret key and AWS session token.- Parameters:
accessKeyId
- The AWS access key, used to identify the user interacting with services.secretAccessKey
- The AWS secret access key, used to authenticate the user interacting with services.sessionToken
- The AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permission to access some resource.
-