BlinkD

AwsCredentialsProviderChain (AWS SDK for Java

AwsCredentialsProvider implementation that chains together multiple credentials providers.

When a caller first requests credentials from this provider, it calls all the providers in the chain, in the original order specified, until one can provide credentials, and then returns those credentials. If all of the credential providers in the chain have been called, and none of them can provide credentials, then this class will throw an exception indicated that no credentials are available.

By default, this class will remember the first credentials provider in the chain that was able to provide credentials, and will continue to use that provider when credentials are requested in the future, instead of traversing the chain each time. This behavior can be controlled through the AwsCredentialsProviderChain.Builder.reuseLastProviderEnabled(Boolean) method.

This chain implements AutoCloseable. When closed, it will call the AutoCloseable.close() on any credential providers in the chain that need to be closed.

ncG1vNJzZmirlKB7ornAs6anmaeoe6S7zGihmq6RZK6xtY5rZWlmYGK9s7HVopywZWFmfLS7xa2umqqVZK6urdmopWiZp6jApbeOmqytoF%2BYv6awxKeropmcqHyCw9J8qZ6claPBqq3LrIerp6aesaa%2BoqGYoqZencGuuA%3D%3D

Sebrina Pilcher

Update: 2024-05-08