@Immutable public class AwsCredentials extends Object
For more details on AWS access keys, see: http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html#AccessKeys
AwsCredentialsProvider
Modifier | Constructor and Description |
---|---|
protected |
AwsCredentials(String accessKeyId,
String secretAccessKey)
Constructs a new credentials object, with the specified AWS access key, AWS secret key and AWS session token.
|
Modifier and Type | Method and Description |
---|---|
String |
accessKeyId()
Retrieve the AWS access key, used to identify the user interacting with AWS.
|
static AwsCredentials |
create(String accessKeyId,
String secretAccessKey)
Constructs a new credentials object, with the specified AWS access key, AWS secret key and AWS session token.
|
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 AwsCredentials(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 AwsCredentials 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 final String accessKeyId()
public final String secretAccessKey()
Copyright © 2018. All rights reserved.