public class BasicSessionCredentials extends java.lang.Object implements AWSSessionCredentials
Constructor and Description |
---|
BasicSessionCredentials(java.lang.String awsAccessKey,
java.lang.String awsSecretKey,
java.lang.String sessionToken)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAWSAccessKeyId()
Returns the AWS access key ID for this credentials object.
|
java.lang.String |
getAWSSecretKey()
Returns the AWS secret access key for this credentials object.
|
java.lang.String |
getSessionToken() |
public BasicSessionCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretKey, java.lang.String sessionToken)
awsAccessKey
- the AWS access key.awsSecretKey
- the AWS secret key.sessionToken
- the session token.public java.lang.String getAWSAccessKeyId()
AWSCredentials
getAWSAccessKeyId
in interface AWSCredentials
public java.lang.String getAWSSecretKey()
AWSCredentials
getAWSSecretKey
in interface AWSCredentials
public java.lang.String getSessionToken()
getSessionToken
in interface AWSSessionCredentials
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.