public class BasicSessionCredentials extends Object implements AWSSessionCredentials, AccountIdAware, ProviderNameAware
| Constructor and Description |
|---|
BasicSessionCredentials(String awsAccessKey,
String awsSecretKey,
String sessionToken) |
BasicSessionCredentials(String awsAccessKey,
String awsSecretKey,
String sessionToken,
String accountId) |
BasicSessionCredentials(String awsAccessKey,
String awsSecretKey,
String sessionToken,
String accountId,
String providerName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Returns the AWS account id associated with this credentials object, if found.
|
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 |
getProviderName()
The name of the source that resolved these credentials, normally a credentials provider.
|
String |
getSessionToken()
Returns the session token for this session.
|
public BasicSessionCredentials(String awsAccessKey, String awsSecretKey, String sessionToken)
public BasicSessionCredentials(String awsAccessKey, String awsSecretKey, String sessionToken, String accountId)
public String getAWSAccessKeyId()
AWSCredentialsgetAWSAccessKeyId in interface AWSCredentialspublic String getAWSSecretKey()
AWSCredentialsgetAWSSecretKey in interface AWSCredentialspublic String getSessionToken()
AWSSessionCredentialsgetSessionToken in interface AWSSessionCredentialspublic String getAccountId()
AccountIdAwaregetAccountId in interface AccountIdAwarepublic String getProviderName()
ProviderNameAwaregetProviderName in interface ProviderNameAware