Class AwsSecurityCredentials (1.26.0)

public class AwsSecurityCredentials

Defines AWS security credentials. These are either retrieved from the AWS security_credentials endpoint or AWS environment variables.

Inheritance

java.lang.Object > AwsSecurityCredentials

Constructors

AwsSecurityCredentials(String accessKeyId, String secretAccessKey, String sessionToken)

public AwsSecurityCredentials(String accessKeyId, String secretAccessKey, String sessionToken)

Constructor for AWSSecurityCredentials.

Parameters
Name Description
accessKeyId String

the AWS access Key Id.

secretAccessKey String

the AWS secret access key.

sessionToken String

the 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.