Class Kv2SecurityProvider.Kv2SecretConfig.Builder
java.lang.Object
io.helidon.integrations.vault.secrets.kv2.Kv2SecurityProvider.Kv2SecretConfig.Builder
- All Implemented Interfaces:
Builder<Kv2SecurityProvider.Kv2SecretConfig.Builder,
,Kv2SecurityProvider.Kv2SecretConfig> Supplier<Kv2SecurityProvider.Kv2SecretConfig>
- Enclosing class:
Kv2SecurityProvider.Kv2SecretConfig
public static class Kv2SecurityProvider.Kv2SecretConfig.Builder
extends Object
implements Builder<Kv2SecurityProvider.Kv2SecretConfig.Builder,Kv2SecurityProvider.Kv2SecretConfig>
Fluent API builder for
Kv2SecurityProvider.Kv2SecretConfig
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Update this builder from configuration.Key within the secret used to obtain the value.Path of the secret on Vault's KV2 secret provider.Version of the secret to use (if not defined, latest version is used).
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Kv2SecurityProvider.Kv2SecretConfig.Builder,
Kv2SecurityProvider.Kv2SecretConfig> - Returns:
- instance of the built type
-
config
Update this builder from configuration. Configuration options:Secret configuration key description builder method path Path of the secret on Vault's KV2 secret provider path(String)
key Key within the secret used to obtain the value key(String)
version Version of the secret to use (if not defined, latest version is used) version(Integer)
- Parameters:
config
- config to use- Returns:
- updated builder
-
path
Path of the secret on Vault's KV2 secret provider.- Parameters:
path
- secret path- Returns:
- updated builder
-
key
Key within the secret used to obtain the value.- Parameters:
key
- key to use- Returns:
- updated builder
-
version
Version of the secret to use (if not defined, latest version is used).- Parameters:
version
- version to use- Returns:
- updated builder
-