Class ConfigVaultProvider.SecretConfig
java.lang.Object
io.helidon.security.providers.config.vault.ConfigVaultProvider.SecretConfig
- All Implemented Interfaces:
SecretsProviderConfig,ProviderConfig
- Enclosing class:
ConfigVaultProvider
public static class ConfigVaultProvider.SecretConfig
extends Object
implements SecretsProviderConfig
Configuration of a secret.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new secret from a value.Create a new secret from a supplier, such as when computing the secret value.createOptionalSupplier(Supplier<Optional<String>> valueSupplier) Create a new secret configuration with a supplier of anOptional, such as when retrieving the secret from some local information that may change.
-
Method Details
-
createOptionalSupplier
public static ConfigVaultProvider.SecretConfig createOptionalSupplier(Supplier<Optional<String>> valueSupplier) Create a new secret configuration with a supplier of anOptional, such as when retrieving the secret from some local information that may change. The supplier must be thread safe.- Parameters:
valueSupplier- supplier of an optional value- Returns:
- a new secret configuration
-
create
Create a new secret from a supplier, such as when computing the secret value. The supplier must be thread safe.- Parameters:
valueSupplier- supplier of a value- Returns:
- a new secret configuration
-
create
Create a new secret from a value.- Parameters:
value- the secret value- Returns:
- a new secret configuration
-