Class BasicAWSCredentials
java.lang.Object
com.amazonaws.auth.BasicAWSCredentials
- All Implemented Interfaces:
AWSCredentials
Basic implementation of the AWSCredentials interface that allows callers to
pass in the AWS access key and secret access in the constructor.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicAWSCredentials(String accessKey, String secretKey) Constructs a new BasicAWSCredentials object, with the specified AWS access key and AWS secret key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the AWS access key ID for this credentials object.Returns the AWS secret access key for this credentials object.
-
Constructor Details
-
BasicAWSCredentials
-
-
Method Details
-
getAWSAccessKeyId
Description copied from interface:AWSCredentialsReturns the AWS access key ID for this credentials object.- Specified by:
getAWSAccessKeyIdin interfaceAWSCredentials- Returns:
- The AWS access key ID for this credentials object.
-
getAWSSecretKey
Description copied from interface:AWSCredentialsReturns the AWS secret access key for this credentials object.- Specified by:
getAWSSecretKeyin interfaceAWSCredentials- Returns:
- The AWS secret access key for this credentials object.
-