Class AwsSecurityCredentials

java.lang.Object
com.google.auth.oauth2.AwsSecurityCredentials

public class AwsSecurityCredentials extends Object
Defines AWS security credentials. These are either retrieved from the AWS security_credentials endpoint or AWS environment variables.
  • Field Details

    • accessKeyId

      private final String accessKeyId
    • secretAccessKey

      private final String secretAccessKey
    • sessionToken

      @Nullable private final String 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

      public String getAccessKeyId()
      Gets the AWS access key id.
      Returns:
      the AWS access key id.
    • getSecretAccessKey

      public String getSecretAccessKey()
      Gets the AWS secret access key.
      Returns:
      the AWS secret access key.
    • getSessionToken

      @Nullable public String getSessionToken()
      Gets the AWS session token.
      Returns:
      the AWS session token.