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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigVaultProvider.SecretConfigcreate(String value)Create a new secret from a value.static ConfigVaultProvider.SecretConfigcreate(Supplier<String> valueSupplier)Create a new secret from a supplier, such as when computing the secret value.static ConfigVaultProvider.SecretConfigcreateOptionalSupplier(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.static ConfigVaultProvider.SecretConfigcreateSingleSupplier(Supplier<Single<Optional<String>>> valueSupplier)Create a new secret configuration with a supplier of a future (Single), such as when retrieving the secret from a remote service.
-
-
-
Method Detail
-
createSingleSupplier
public static ConfigVaultProvider.SecretConfig createSingleSupplier(Supplier<Single<Optional<String>>> valueSupplier)
Create a new secret configuration with a supplier of a future (Single), such as when retrieving the secret from a remote service. The supplier must be thread safe.- Parameters:
valueSupplier- supplier of a value- Returns:
- a new secret configuration
-
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
public static ConfigVaultProvider.SecretConfig create(Supplier<String> valueSupplier)
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
public static ConfigVaultProvider.SecretConfig create(String value)
Create a new secret from a value.- Parameters:
value- the secret value- Returns:
- a new secret configuration
-
-