Package com.google.auth.oauth2
Class AwsSecurityCredentials
java.lang.Object
com.google.auth.oauth2.AwsSecurityCredentials
Defines AWS security credentials. These are either retrieved from the AWS security_credentials
endpoint or AWS environment variables.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAwsSecurityCredentials
(String accessKeyId, String secretAccessKey, String sessionToken) Constructor for AWSSecurityCredentials. -
Method Summary
Modifier and TypeMethodDescriptionGets the AWS access key id.Gets the AWS secret access key.Gets the AWS session token.
-
Field Details
-
accessKeyId
-
secretAccessKey
-
sessionToken
-
-
Constructor Details
-
AwsSecurityCredentials
public AwsSecurityCredentials(String accessKeyId, String secretAccessKey, @Nullable String sessionToken) Constructor for AWSSecurityCredentials.- Parameters:
accessKeyId
- the AWS access Key Id.secretAccessKey
- the AWS secret access key.sessionToken
- the AWS session token. Optional.
-
-
Method Details
-
getAccessKeyId
Gets the AWS access key id.- Returns:
- the AWS access key id.
-
getSecretAccessKey
Gets the AWS secret access key.- Returns:
- the AWS secret access key.
-
getSessionToken
Gets the AWS session token.- Returns:
- the AWS session token.
-