public class InstanceProfileCredentialsProvider extends Object implements AWSCredentialsProvider
| Constructor and Description |
|---|
InstanceProfileCredentialsProvider() |
InstanceProfileCredentialsProvider(boolean refreshCredentialsAsync)
Spins up a new thread to refresh the credentials asynchronously if
refreshCredentialsAsync is set to true, otherwise the credentials will be
refreshed from the instance metadata service synchronously,
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
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 InstanceProfileCredentialsProvider()
public InstanceProfileCredentialsProvider(boolean refreshCredentialsAsync)
refreshCredentialsAsync - true if credentials needs to be refreshed asynchronously else
false.protected void finalize()
throws Throwable
public AWSCredentials getCredentials()
AWSCredentialsProvidergetCredentials in interface AWSCredentialsProviderpublic void refresh()
AWSCredentialsProviderrefresh in interface AWSCredentialsProviderCopyright © 2016. All rights reserved.