Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • accessKeyId

        private final java.lang.String accessKeyId
      • secretAccessKey

        private final java.lang.String secretAccessKey
      • sessionToken

        @Nullable
        private final java.lang.String sessionToken
    • 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.