@Immutable public final class AwsBasicCredentials extends Object implements AwsCredentials
For more details on AWS access keys, see: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys
AwsCredentialsProviderAwsCredentialsIdentity.Builder| 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbuilderexpirationTimeprotected 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)
create in interface AwsCredentialsIdentityaccessKeyId - 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 AwsCredentialsIdentitypublic String secretAccessKey()
secretAccessKey in interface AwsCredentialsIdentityCopyright © 2023. All rights reserved.