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 StringgetAWSAccessKeyId()Returns the AWS access key ID for this credentials object.StringgetAWSSecretKey()Returns the AWS secret access key for this credentials object.StringgetSessionToken()Returns the session token for this session.
-
-
-
Method Detail
-
getAWSAccessKeyId
public String getAWSAccessKeyId()
Description copied from interface:AWSCredentialsReturns the AWS access key ID for this credentials object.- Specified by:
getAWSAccessKeyIdin interfaceAWSCredentials- Returns:
- The AWS access key ID for this credentials object.
-
getAWSSecretKey
public String getAWSSecretKey()
Description copied from interface:AWSCredentialsReturns the AWS secret access key for this credentials object.- Specified by:
getAWSSecretKeyin interfaceAWSCredentials- Returns:
- The AWS secret access key for this credentials object.
-
getSessionToken
public String getSessionToken()
Description copied from interface:AWSSessionCredentialsReturns the session token for this session.- Specified by:
getSessionTokenin interfaceAWSSessionCredentials
-
-