public class BasicAWSCredentials extends Object implements AWSCredentials, AccountIdAware
| Constructor and Description | 
|---|
| BasicAWSCredentials(String accessKey,
                   String secretKey)Constructs a new BasicAWSCredentials object, with the specified AWS
 access key and AWS secret key. | 
| BasicAWSCredentials(String accessKey,
                   String secretKey,
                   String accountId)Constructs a new BasicAWSCredentials object, with the specified AWS
 access key and AWS secret key. | 
| 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. | 
public BasicAWSCredentials(String accessKey, String secretKey)
accessKey - The AWS access key.secretKey - The AWS secret access key.public BasicAWSCredentials(String accessKey, String secretKey, String accountId)
accessKey - The AWS access key.secretKey - The AWS secret access key.accountId - The AWS account id associated with the credentials.public String getAWSAccessKeyId()
AWSCredentialsgetAWSAccessKeyId in interface AWSCredentialspublic String getAWSSecretKey()
AWSCredentialsgetAWSSecretKey in interface AWSCredentialspublic String getAccountId()
AccountIdAwaregetAccountId in interface AccountIdAwareCopyright © 2024. All rights reserved.