java.lang.Object
io.helidon.integrations.vault.Vault.Builder
- All Implemented Interfaces:
Builder<Vault.Builder,
,Vault> Supplier<Vault>
- Enclosing interface:
- Vault
Fluent API builder for
Vault
.-
Method Summary
Modifier and TypeMethodDescriptionaddress()
Vault address (if configured).Configure address of the Vault, including scheme, host, and port.addVaultAuth
(VaultAuth vaultAuth) Add aVaultAuth
to use with this Vault.Base namespace (if configured).baseNamespace
(String baseNamespace) Base namespace to use when invoking Vault operations.build()
Build the instance from this builder.config()
Current config.Update this builder from configuration.Do not discoverVaultAuth
implementations using a service loader.faultTolerance
(FtHandler faultTolerance) AnFtHandler
can be configured to be used by all calls to the Vault, to add support for retries, circuit breakers, bulkhead etc.Configured fault tolerance handler.token()
Token (if configured).Configure token to use to connect to the Vault.updateWebClient
(Consumer<WebClient.Builder> updater) A consumer that updatesWebClient.Builder
.Update to web client setup.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Vault.Builder,
Vault> - Returns:
- instance of the built type
-
addVaultAuth
Add aVaultAuth
to use with this Vault. Also allVaultAuths
discovered by service loader are used.- Parameters:
vaultAuth
- vault authentication mechanism to use- Returns:
- updated builder
-
address
Configure address of the Vault, including scheme, host, and port.- Parameters:
address
- address of the Vault- Returns:
- updated builder instance
-
token
Configure token to use to connect to the Vault.- Parameters:
token
- token to use- Returns:
- updated builder instance
-
faultTolerance
AnFtHandler
can be configured to be used by all calls to the Vault, to add support for retries, circuit breakers, bulkhead etc.- Parameters:
faultTolerance
- fault tolerance handler to use- Returns:
- updated builder instance
-
updateWebClient
A consumer that updatesWebClient.Builder
. The consumer may be invoked multiple times, for example when a Vault authentication must use an un-authenticated Vault to authenticate.- Parameters:
updater
- update the web client builder- Returns:
- updated builder instance
-
disableVaultAuthDiscovery
Do not discoverVaultAuth
implementations using a service loader.- Returns:
- updated builder instance
-
config
Update this builder from configuration.- Parameters:
config
- configuration to use- Returns:
- updated builder instance
-
baseNamespace
Base namespace to use when invoking Vault operations.- Parameters:
baseNamespace
- base namespace- Returns:
- updated builder
-
address
Vault address (if configured).- Returns:
- vault address
-
token
Token (if configured).- Returns:
- token
-
baseNamespace
Base namespace (if configured).- Returns:
- namespace to use
-
ftHandler
Configured fault tolerance handler.- Returns:
- FT Handler
-
config
Current config.- Returns:
- config instance
-
webClientUpdater
Update to web client setup. Used by authentication methods- Returns:
- web client updater
-