public final class ContainerCredentialsProvider extends HttpCredentialsProvider
AwsCredentialsProvider implementation that loads credentials from a local metadata service.
Currently supported containers:
The URI path is retrieved from the environment variable "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" or "AWS_CONTAINER_CREDENTIALS_FULL_URI" in the container's environment. If the environment variable is not set, this credentials provider will throw an exception.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContainerCredentialsProvider.Builder
A builder for creating a custom a
ContainerCredentialsProvider. |
| Modifier and Type | Method and Description |
|---|---|
static ContainerCredentialsProvider.Builder |
builder()
Create a builder for creating a
ContainerCredentialsProvider. |
protected ResourcesEndpointProvider |
getCredentialsEndpointProvider() |
String |
toString() |
close, isLocalCredentialLoadingDisabled, resolveCredentialspublic static ContainerCredentialsProvider.Builder builder()
ContainerCredentialsProvider.protected ResourcesEndpointProvider getCredentialsEndpointProvider()
getCredentialsEndpointProvider in class HttpCredentialsProviderCopyright © 2019. All rights reserved.