public class ContainerCredentialsProvider extends Object implements AWSCredentialsProvider
AWSCredentialsProvider
implementation that loads credentials
from an Amazon Elastic Container.
By default, the URI path is retrieved from the environment variable "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" in the container's environment.
Constructor and Description |
---|
ContainerCredentialsProvider()
Deprecated.
|
ContainerCredentialsProvider(CredentialsEndpointProvider credentialsEndpointProvider) |
Modifier and Type | Method and Description |
---|---|
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
Date |
getCredentialsExpiration() |
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
@Deprecated public ContainerCredentialsProvider()
ContainerCredentialsProvider(CredentialsEndpointProvider)
public ContainerCredentialsProvider(CredentialsEndpointProvider credentialsEndpointProvider)
public AWSCredentials getCredentials()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider
public Date getCredentialsExpiration()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.