Package com.amazonaws.auth
Interface AWSCredentials
- All Known Subinterfaces:
AWSRefreshableSessionCredentials
,AWSSessionCredentials
- All Known Implementing Classes:
AnonymousAWSCredentials
,BasicAWSCredentials
,BasicSessionCredentials
,PropertiesCredentials
,STSSessionCredentials
public interface AWSCredentials
Provides access to the AWS credentials used for accessing AWS services: AWS
access key ID and secret access key. These credentials are used to securely
sign requests to AWS services.
A basic implementation of this interface is provided in
BasicAWSCredentials
, but callers are free to provide their own
implementation, for example, to load AWS credentials from an encrypted file.
For more details on AWS access keys, see: http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/ AboutAWSCredentials.html#AccessKeys
-
Method Summary
Modifier and TypeMethodDescriptionReturns the AWS access key ID for this credentials object.Returns the AWS secret access key for this credentials object.
-
Method Details
-
getAWSAccessKeyId
String getAWSAccessKeyId()Returns the AWS access key ID for this credentials object.- Returns:
- The AWS access key ID for this credentials object.
-
getAWSSecretKey
String getAWSSecretKey()Returns the AWS secret access key for this credentials object.- Returns:
- The AWS secret access key for this credentials object.
-