Java com.amazonaws.auth InstanceProfileCredentialsProvider fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.auth InstanceProfileCredentialsProvider fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.auth InstanceProfileCredentialsProvider.

The text is from its open source code.

Constructor

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,

It is strongly recommended to reuse instances of this credentials provider, especially when async refreshing is used since a background thread is created.

Method

AWSCredentialsgetCredentials()
InstanceProfileCredentialsProvidergetInstance()
Returns a singleton InstanceProfileCredentialsProvider that does not refresh credentials asynchronously.
voidrefresh()