AwsBasicCredentials (AWS SDK for Java

AwsBasicCredentials (AWS SDK for Java - 2.25.21)
All Implemented Interfaces:
AwsCredentials, AwsCredentialsIdentity, Identity

See Also:
  • Method Details

    • create

      Constructs a new credentials object, with the specified AWS access key and AWS secret key.

      Parameters:
      accessKeyId - The AWS access key, used to identify the user interacting with AWS.
      secretAccessKey - The AWS secret access key, used to authenticate the user interacting with AWS.
    • accessKeyId

      Retrieve the AWS access key, used to identify the user interacting with AWS.

      Specified by:
      accessKeyId in interface AwsCredentialsIdentity
    • secretAccessKey

      public String secretAccessKey()

      Retrieve the AWS secret access key, used to authenticate the user interacting with AWS.

      Specified by:
      secretAccessKey in interface AwsCredentialsIdentity
    • toString

      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()

      Overrides:
      hashCode in class Object

You Might Also Like