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 Details

    • createOptionalSupplier

      public static ConfigVaultProvider.SecretConfig createOptionalSupplier(Supplier<Optional<String>> valueSupplier)
      Create a new secret configuration with a supplier of an Optional, 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