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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BuilderTasyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)Configure whether the provider should fetch credentials asynchronously in the background.BuilderTasyncThreadName(String asyncThreadName)WhenasyncCredentialUpdateEnabled(Boolean)is true, this configures the name of the threads used for credential refreshing.TypeToBuildTbuild()Build the credentials provider based on the configuration on this builder.BuilderTendpoint(String endpoint)Override the default hostname (not path) that is used for credential refreshing.default BuilderTsourceChain(String sourceChain)An optional string denoting previous credentials providers that are chained with this one.
-
-
-
Method Detail
-
asyncCredentialUpdateEnabled
BuilderT asyncCredentialUpdateEnabled(Boolean 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
BuilderT asyncThreadName(String asyncThreadName)
WhenasyncCredentialUpdateEnabled(Boolean)is true, this configures the name of the threads used for credential refreshing.
-
endpoint
BuilderT endpoint(String 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.
-
sourceChain
default BuilderT sourceChain(String sourceChain)
An optional string denoting previous credentials providers that are chained with this one.Note: This method is primarily intended for use by AWS SDK internal components and should not be used directly by external users.
-
build
TypeToBuildT build()
Build the credentials provider based on the configuration on this builder.
-
-