public class EC2ContainerCredentialsProviderWrapper extends Object implements AWSCredentialsProvider
AWSCredentialsProvider
that loads credentials from an Amazon Container (e.g. EC2)
Credentials are solved in the following order:
InstanceProfileCredentialsProvider
.
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()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider
Copyright © 2019. All rights reserved.