Class BasicAWSCredentials

java.lang.Object
com.amazonaws.auth.BasicAWSCredentials
All Implemented Interfaces:
AWSCredentials

public class BasicAWSCredentials extends Object implements AWSCredentials
Basic implementation of the AWSCredentials interface that allows callers to pass in the AWS access key and secret access in the constructor.
  • Constructor Details

    • BasicAWSCredentials

      public BasicAWSCredentials(String accessKey, String secretKey)
      Constructs a new BasicAWSCredentials object, with the specified AWS access key and AWS secret key.
      Parameters:
      accessKey - The AWS access key.
      secretKey - The AWS secret access key.
  • Method Details

    • getAWSAccessKeyId

      public String getAWSAccessKeyId()
      Description copied from interface: AWSCredentials
      Returns the AWS access key ID for this credentials object.
      Specified by:
      getAWSAccessKeyId in interface AWSCredentials
      Returns:
      The AWS access key ID for this credentials object.
    • getAWSSecretKey

      public String getAWSSecretKey()
      Description copied from interface: AWSCredentials
      Returns the AWS secret access key for this credentials object.
      Specified by:
      getAWSSecretKey in interface AWSCredentials
      Returns:
      The AWS secret access key for this credentials object.