Package com.google.auth.oauth2
Class AwsSecurityCredentials
- java.lang.Object
-
- com.google.auth.oauth2.AwsSecurityCredentials
-
public class AwsSecurityCredentials extends java.lang.Object
Defines AWS security credentials. These are either retrieved from the AWS security_credentials endpoint or AWS environment variables.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
accessKeyId
private java.lang.String
secretAccessKey
private java.lang.String
sessionToken
-
Constructor Summary
Constructors Constructor Description AwsSecurityCredentials(java.lang.String accessKeyId, java.lang.String secretAccessKey, java.lang.String sessionToken)
Constructor for AWSSecurityCredentials.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessKeyId()
Gets the AWS access key id.java.lang.String
getSecretAccessKey()
Gets the AWS secret access key.java.lang.String
getSessionToken()
Gets the AWS session token.
-
-
-
Constructor Detail
-
AwsSecurityCredentials
public AwsSecurityCredentials(java.lang.String accessKeyId, java.lang.String secretAccessKey, @Nullable java.lang.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 Detail
-
getAccessKeyId
public java.lang.String getAccessKeyId()
Gets the AWS access key id.- Returns:
- the AWS access key id.
-
getSecretAccessKey
public java.lang.String getSecretAccessKey()
Gets the AWS secret access key.- Returns:
- the AWS secret access key.
-
getSessionToken
@Nullable public java.lang.String getSessionToken()
Gets the AWS session token.- Returns:
- the AWS session token.
-
-