public class BasicAWSCredentials extends Object implements AWSCredentials, AccountIdAware, ProviderNameAware
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.
|
BasicAWSCredentials(String accessKey,
String secretKey,
String accountId,
String providerName)
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.
|
String |
getProviderName()
The name of the source that resolved these credentials, normally a credentials provider.
|
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 BasicAWSCredentials(String accessKey, String secretKey, String accountId, String providerName)
accessKey
- The AWS access key.secretKey
- The AWS secret access key.accountId
- The AWS account id associated with the credentials.providerName
- The name of the source that resolved these credentials.public String getAWSAccessKeyId()
AWSCredentials
getAWSAccessKeyId
in interface AWSCredentials
public String getAWSSecretKey()
AWSCredentials
getAWSSecretKey
in interface AWSCredentials
public String getAccountId()
AccountIdAware
getAccountId
in interface AccountIdAware
public String getProviderName()
ProviderNameAware
getProviderName
in interface ProviderNameAware