public class AwsSecurityCredentialsDefines AWS security credentials. These are either retrieved from the AWS security_credentials endpoint or AWS environment variables.
Constructors
AwsSecurityCredentials(String accessKeyId, String secretAccessKey, String sessionToken)
public AwsSecurityCredentials(String accessKeyId, String secretAccessKey, String sessionToken)Constructor for AWSSecurityCredentials.
| Parameters | |
|---|---|
| Name | Description |
accessKeyId |
Stringthe AWS access Key Id. |
secretAccessKey |
Stringthe AWS secret access key. |
sessionToken |
Stringthe AWS session token. Optional. |
Methods
getAccessKeyId()
public String getAccessKeyId()Gets the AWS access key id.
| Returns | |
|---|---|
| Type | Description |
String |
the AWS access key id. |
getSecretAccessKey()
public String getSecretAccessKey()Gets the AWS secret access key.
| Returns | |
|---|---|
| Type | Description |
String |
the AWS secret access key. |
getSessionToken()
public String getSessionToken()Gets the AWS session token.
| Returns | |
|---|---|
| Type | Description |
String |
the AWS session token. |