@ThreadSafe public interface AwsSessionCredentialsIdentity extends AwsCredentialsIdentity
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.| Modifier and Type | Interface and Description |
|---|---|
static interface |
AwsSessionCredentialsIdentity.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsSessionCredentialsIdentity.Builder |
builder() |
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.
|
String |
sessionToken()
Retrieve the AWS session token.
|
accessKeyId, create, secretAccessKeyexpirationTimeString sessionToken()
static AwsSessionCredentialsIdentity.Builder builder()
builder in interface AwsCredentialsIdentitystatic AwsSessionCredentialsIdentity create(String accessKeyId, String secretAccessKey, String sessionToken)
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.Copyright © 2023. All rights reserved.