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 Details

    • 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)
      When asyncCredentialUpdateEnabled(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.