Package com.adaptris.aws2
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe access key for the AWS accountsoftware.amazon.awssdk.auth.credentials.AwsCredentialsThe secret key for the AWS account which may be encoded or external.voidsetAccessKey(String accessKey) The access key for the AWS accountvoidsetSecretKey(String secretKey) The secret key for the AWS account which may be encoded or external.
-
Constructor Details
-
AWSKeysAuthentication
-
AWSKeysAuthentication
public AWSKeysAuthentication()
-
-
Method Details
-
getAWSCredentials
public software.amazon.awssdk.auth.credentials.AwsCredentials getAWSCredentials() throws AdaptrisSecurityException- Specified by:
getAWSCredentialsin interfaceAWSAuthentication- Throws:
AdaptrisSecurityException
-
getAccessKey
The access key for the AWS account -
setAccessKey
The access key for the AWS account -
getSecretKey
The secret key for the AWS account which may be encoded or external. -
setSecretKey
The secret key for the AWS account which may be encoded or external.
-