Class EncryptionFilter.Builder

java.lang.Object
io.helidon.config.encryption.EncryptionFilter.Builder
Enclosing class:
EncryptionFilter

public static class EncryptionFilter.Builder extends Object
Builder to programmatically setup EncryptionFilter.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • masterPassword

      public EncryptionFilter.Builder masterPassword(char[] password)
      Master password for AES based decryption.
      Parameters:
      password - password to use
      Returns:
      updated builder instance
    • privateKey

      public EncryptionFilter.Builder privateKey(Keys privateKey)
      Private key for RSA based decryption.
      Parameters:
      privateKey - private key to use
      Returns:
      updated builder instance
    • requireEncryption

      public EncryptionFilter.Builder requireEncryption(boolean require)
      Whether to require encryption of passwords in properties.
      Parameters:
      require - if set to true, clear text passwords will fail
      Returns:
      updated builder instance
    • buildProvider

      public Function<Config,ConfigFilter> buildProvider()
      Create a new EncryptionFilter provider based on this builder.
      Returns:
      filter instance