Package com.amazonaws.auth
Class BasicSessionCredentials
- java.lang.Object
-
- com.amazonaws.auth.BasicSessionCredentials
-
- All Implemented Interfaces:
AWSCredentials
,AWSSessionCredentials
public class BasicSessionCredentials extends Object implements AWSSessionCredentials
Simple session credentials with keys and session token.
-
-
Constructor Summary
Constructors Constructor Description BasicSessionCredentials(String awsAccessKey, String awsSecretKey, String sessionToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAWSAccessKeyId()
Returns the AWS access key ID for this credentials object.String
getAWSSecretKey()
Returns the AWS secret access key for this credentials object.String
getSessionToken()
Returns the session token for this session.
-
-
-
Method Detail
-
getAWSAccessKeyId
public String 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
public String 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
public String getSessionToken()
Description copied from interface:AWSSessionCredentials
Returns the session token for this session.- Specified by:
getSessionToken
in interfaceAWSSessionCredentials
-
-