public class EnvironmentVariableCredentialsProvider extends Object implements AWSCredentialsProvider
AWSCredentialsProvider implementation that provides credentials by looking at the: AWS_ACCESS_KEY_ID (or
AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY) environment variables. If
the AWS_SESSION_TOKEN environment variable is also set then temporary credentials will be used.| Constructor and Description |
|---|
EnvironmentVariableCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
String |
toString() |
public EnvironmentVariableCredentialsProvider()
public AWSCredentials getCredentials()
AWSCredentialsProvidergetCredentials in interface AWSCredentialsProviderpublic void refresh()
AWSCredentialsProviderrefresh in interface AWSCredentialsProviderCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.