Package io.helidon.config.encryption
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 setupEncryptionFilter
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<Config,ConfigFilter>
buildProvider()
Create a newEncryptionFilter
provider based on this builder.EncryptionFilter.Builder
masterPassword(char[] password)
Master password for AES based decryption.EncryptionFilter.Builder
privateKey(KeyConfig privateKey)
Private key for RSA based decryption.EncryptionFilter.Builder
requireEncryption(boolean require)
Whether to require encryption of passwords in properties.
-
-
-
Method Detail
-
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(KeyConfig 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 newEncryptionFilter
provider based on this builder.- Returns:
- filter instance
-
-