Package com.amazonaws.auth
Class BasicSessionCredentials
java.lang.Object
com.amazonaws.auth.BasicSessionCredentials
- All Implemented Interfaces:
AWSCredentials
,AWSSessionCredentials
Simple session credentials with keys and session token.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicSessionCredentials
(String awsAccessKey, String awsSecretKey, String sessionToken) -
Method Summary
Modifier and TypeMethodDescriptionReturns the AWS access key ID for this credentials object.Returns the AWS secret access key for this credentials object.Returns the session token for this session.
-
Constructor Details
-
BasicSessionCredentials
-
-
Method Details
-
getAWSAccessKeyId
Description copied from interface:AWSCredentials
Returns the AWS access key ID for this credentials object.- Specified by:
getAWSAccessKeyId
in interfaceAWSCredentials
- Returns:
- The AWS access key ID for this credentials object.
-
getAWSSecretKey
Description copied from interface:AWSCredentials
Returns the AWS secret access key for this credentials object.- Specified by:
getAWSSecretKey
in interfaceAWSCredentials
- Returns:
- The AWS secret access key for this credentials object.
-
getSessionToken
Description copied from interface:AWSSessionCredentials
Returns the session token for this session.- Specified by:
getSessionToken
in interfaceAWSSessionCredentials
-