- java.lang.Object
-
- io.helidon.integrations.vault.Vault.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
address()
Vault.Builder
address(String address)
Configure address of the Vault, including scheme, host, and port.Vault.Builder
addVaultAuth(VaultAuth vaultAuth)
Add aVaultAuth
to use with this Vault.Optional<String>
baseNamespace()
Vault.Builder
baseNamespace(String baseNamespace)
Vault
build()
Build the instance from this builder.Config
config()
Vault.Builder
config(Config config)
Update this builder from configuration.Vault.Builder
disableVaultAuthDiscovery()
Do not discoverVaultAuth
implementations using a service loader.Vault.Builder
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.FtHandler
ftHandler()
Optional<String>
token()
Vault.Builder
token(String token)
Configure token to use to connect to the Vault.Vault.Builder
updateWebClient(Consumer<WebClient.Builder> updater)
A consumer that updatesWebClient.Builder
.Consumer<WebClient.Builder>
webClientUpdater()
-
-
-
Method Detail
-
build
public Vault build()
Description copied from interface:Builder
Build the instance from this builder.
-
addVaultAuth
public Vault.Builder addVaultAuth(VaultAuth vaultAuth)
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
public Vault.Builder address(String address)
Configure address of the Vault, including scheme, host, and port.- Parameters:
address
- address of the Vault- Returns:
- updated builder instance
-
token
public Vault.Builder token(String token)
Configure token to use to connect to the Vault.- Parameters:
token
- token to use- Returns:
- updated builder instance
-
faultTolerance
public Vault.Builder 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.- Parameters:
faultTolerance
- fault tolerance handler to use- Returns:
- updated builder instance
-
updateWebClient
public Vault.Builder updateWebClient(Consumer<WebClient.Builder> updater)
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
public Vault.Builder disableVaultAuthDiscovery()
Do not discoverVaultAuth
implementations using a service loader.- Returns:
- updated builder instance
-
config
public Vault.Builder config(Config config)
Update this builder from configuration.- Parameters:
config
- configuration to use- Returns:
- updated builder instance
-
baseNamespace
public Vault.Builder baseNamespace(String baseNamespace)
-
ftHandler
public FtHandler ftHandler()
-
config
public Config config()
-
webClientUpdater
public Consumer<WebClient.Builder> webClientUpdater()
-
-