public class AwsSessionCredentials extends AwsCredentials
AwsCredentials
that also 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 | Method and Description |
---|---|
static AwsSessionCredentials |
create(String accessKey,
String secretKey,
String sessionToken)
Constructs a new session credentials object, with the specified AWS access key, AWS secret key and AWS session token.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
sessionToken()
Retrieve the AWS session token.
|
String |
toString() |
accessKeyId, create, secretAccessKey
public static AwsSessionCredentials create(String accessKey, String secretKey, String sessionToken)
accessKey
- The AWS access key, used to identify the user interacting with AWS.secretKey
- The AWS secret access key, used to authenticate the user interacting with AWS.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.public final String sessionToken()
public String toString()
toString
in class AwsCredentials
public boolean equals(Object o)
equals
in class AwsCredentials
public int hashCode()
hashCode
in class AwsCredentials
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.