Interface AwsSessionCredentialsIdentity
-
- All Superinterfaces:
AwsCredentialsIdentity,Identity
- All Known Implementing Classes:
DefaultAwsSessionCredentialsIdentity
@ThreadSafe public interface AwsSessionCredentialsIdentity extends AwsCredentialsIdentity
A special type ofAwsCredentialsIdentitythat 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 Modifier and Type Interface Description static interfaceAwsSessionCredentialsIdentity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AwsSessionCredentialsIdentity.Builderbuilder()static AwsSessionCredentialsIdentitycreate(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.StringsessionToken()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 Detail
-
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
static AwsSessionCredentialsIdentity.Builder 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.
-
-