public static final class DefaultCredentialsProvider.Builder extends Object
DefaultCredentialsProvider
's behavior.Modifier and Type | Method and Description |
---|---|
DefaultCredentialsProvider.Builder |
asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
Configure whether this provider should fetch credentials asynchronously in the background.
|
DefaultCredentialsProvider |
build()
Create a
DefaultCredentialsProvider using the configuration defined in this builder. |
DefaultCredentialsProvider.Builder |
reuseLastProviderEnabled(Boolean reuseLastProviderEnabled)
Controls whether the provider should reuse the last successful credentials provider in the chain.
|
public DefaultCredentialsProvider.Builder reuseLastProviderEnabled(Boolean reuseLastProviderEnabled)
By default, this is enabled.
public DefaultCredentialsProvider.Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
DefaultCredentialsProvider.resolveCredentials()
is called, but additional resources are used to maintain the
provider.
By default, this is disabled.
public DefaultCredentialsProvider build()
DefaultCredentialsProvider
using the configuration defined in this builder.Copyright © 2019. All rights reserved.