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