Class ConfigVaultProvider.EncryptionConfig

java.lang.Object
io.helidon.security.providers.config.vault.ConfigVaultProvider.EncryptionConfig
All Implemented Interfaces:
ProviderConfig
Enclosing class:
ConfigVaultProvider

public static class ConfigVaultProvider.EncryptionConfig extends Object implements ProviderConfig
Configuration of encryption. Legacy flags configured on a named encryption entry override the provider-level defaults while still inheriting the provider master password unless a password is configured on this entry.
  • Method Details

    • create

      public static ConfigVaultProvider.EncryptionConfig create()
      Create a new instance.
      Returns:
      new instance with default configuration
    • create

      public static ConfigVaultProvider.EncryptionConfig create(char[] password)
      Create a new instance with custom password.
      Parameters:
      password - password to use
      Returns:
      a new instance using the custom password
    • create

      public static ConfigVaultProvider.EncryptionConfig create(char[] password, boolean legacyEncryption, boolean legacyFallback)
      Create a new instance with custom password and legacy encryption flags. These flags are temporary compatibility controls for rolling upgrades, not steady-state security settings.
      Parameters:
      password - password to use
      legacyEncryption - whether data should be written using the legacy encrypted value format
      legacyFallback - whether decryption should retry with the alternate encrypted value format
      Returns:
      a new instance using the custom password and legacy flags
    • create

      @Deprecated(since="4.4.0", forRemoval=true) public static ConfigVaultProvider.EncryptionConfig create(Config config)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new instance from config.
      Parameters:
      config - config to read password and legacy flags from (if any)
      Returns:
      a new instance configured from config
    • create

      public static ConfigVaultProvider.EncryptionConfig create(Config config)
      Create a new instance from config.
      Parameters:
      config - config to read password and legacy flags from (if any)
      Returns:
      a new instance configured from config