Interface HttpCredentialsProvider.Builder<TypeToBuildT extends HttpCredentialsProvider,BuilderT extends HttpCredentialsProvider.Builder<?,?>>
- All Known Subinterfaces:
ContainerCredentialsProvider.Builder
,InstanceProfileCredentialsProvider.Builder
- Enclosing interface:
HttpCredentialsProvider
public static interface HttpCredentialsProvider.Builder<TypeToBuildT extends HttpCredentialsProvider,BuilderT extends HttpCredentialsProvider.Builder<?,?>>
-
Method Summary
Modifier and TypeMethodDescriptionasyncCredentialUpdateEnabled
(Boolean asyncCredentialUpdateEnabled) Configure whether the provider should fetch credentials asynchronously in the background.asyncThreadName
(String asyncThreadName) WhenasyncCredentialUpdateEnabled(Boolean)
is true, this configures the name of the threads used for credential refreshing.build()
Build the credentials provider based on the configuration on this builder.Override the default hostname (not path) that is used for credential refreshing.
-
Method Details
-
asyncCredentialUpdateEnabled
Configure whether the provider should fetch credentials asynchronously in the background. If this is true, threads are less likely to block when credentials are loaded, but additional resources are used to maintain the provider.By default, this is disabled.
-
asyncThreadName
WhenasyncCredentialUpdateEnabled(Boolean)
is true, this configures the name of the threads used for credential refreshing. -
endpoint
Override the default hostname (not path) that is used for credential refreshing. Most users do not need to modify this behavior, except for testing purposes where mocking the HTTP credential source would be useful. -
build
TypeToBuildT build()Build the credentials provider based on the configuration on this builder.
-