@Immutable public final class AwsBasicCredentials extends Object implements AwsCredentials
For more details on AWS access keys, see: http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html#AccessKeys
AwsCredentialsProvider
Modifier | Constructor and Description |
---|---|
protected |
AwsBasicCredentials(String accessKeyId,
String secretAccessKey)
Constructs a new credentials object, with the specified AWS access key and AWS secret key.
|
Modifier and Type | Method and Description |
---|---|
String |
accessKeyId()
Retrieve the AWS access key, used to identify the user interacting with AWS.
|
static AwsBasicCredentials |
create(String accessKeyId,
String secretAccessKey)
Constructs a new credentials object, with the specified AWS access key and AWS secret key.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
secretAccessKey()
Retrieve the AWS secret access key, used to authenticate the user interacting with AWS.
|
String |
toString() |
protected AwsBasicCredentials(String accessKeyId, String secretAccessKey)
accessKeyId
- The AWS access key, used to identify the user interacting with AWS.secretAccessKey
- The AWS secret access key, used to authenticate the user interacting with AWS.public static AwsBasicCredentials create(String accessKeyId, String secretAccessKey)
accessKeyId
- The AWS access key, used to identify the user interacting with AWS.secretAccessKey
- The AWS secret access key, used to authenticate the user interacting with AWS.public String accessKeyId()
accessKeyId
in interface AwsCredentials
public String secretAccessKey()
secretAccessKey
in interface AwsCredentials
Copyright © 2021. All rights reserved.