Class AWSKeysAuthentication

java.lang.Object
com.adaptris.aws2.AWSKeysAuthentication
All Implemented Interfaces:
AWSAuthentication

@ComponentProfile(summary="Specify explicit keys for AWS access. Either the root keys for the AWS account (not recommended) or IAM keys.", since="4.3.0") public class AWSKeysAuthentication extends Object implements AWSAuthentication
Specify explicit keys for AWS access. Either the root keys for the AWS account (not recommended) or IAM keys.

In the event that both the secret and access key are left blank; then this will not create any credentials which will cause the underlying system to default to a default AWS authentication chain

Since:
4.3.0
  • Constructor Details

    • AWSKeysAuthentication

      public AWSKeysAuthentication(String accessKey, String secretKey)
    • AWSKeysAuthentication

      public AWSKeysAuthentication()
  • Method Details

    • getAWSCredentials

      public software.amazon.awssdk.auth.credentials.AwsCredentials getAWSCredentials() throws AdaptrisSecurityException
      Specified by:
      getAWSCredentials in interface AWSAuthentication
      Throws:
      AdaptrisSecurityException
    • getAccessKey

      public String getAccessKey()
      The access key for the AWS account
    • setAccessKey

      public void setAccessKey(String accessKey)
      The access key for the AWS account
    • getSecretKey

      public String getSecretKey()
      The secret key for the AWS account which may be encoded or external.
    • setSecretKey

      public void setSecretKey(String secretKey)
      The secret key for the AWS account which may be encoded or external.