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() |
ContainerCredentialsProvider(com.amazonaws.internal.CredentialsEndpointProvider credentailsEndpointProvider) |
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.
|
public ContainerCredentialsProvider()
public ContainerCredentialsProvider(com.amazonaws.internal.CredentialsEndpointProvider credentailsEndpointProvider)
public AWSCredentials getCredentials()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider
public Date getCredentialsExpiration()
Copyright © 2016. All rights reserved.