public class EC2ContainerCredentialsProviderWrapper extends Object implements AWSCredentialsProvider
AWSCredentialsProvider that loads credentials from Amazon EC2 Container Service
if "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" environment variable is set and
security manager has permission to access the variable,
otherwise loads credentials from Amazon EC2 Instance Metadata Service.
| Constructor and Description |
|---|
EC2ContainerCredentialsProviderWrapper() |
| 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.
|
public EC2ContainerCredentialsProviderWrapper()
public AWSCredentials getCredentials()
AWSCredentialsProvidergetCredentials in interface AWSCredentialsProviderpublic void refresh()
AWSCredentialsProviderrefresh in interface AWSCredentialsProviderCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.