public class PropertyEncryptorBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
algorithm |
private String |
password |
private static PropertySecretKeyProvider |
SECRET_KEY_PROVIDER |
| Constructor and Description |
|---|
PropertyEncryptorBuilder(String password)
Property Encryptor Builder with required password
|
| Modifier and Type | Method and Description |
|---|---|
PropertyEncryptor |
build()
Build Property Encryptor using current configuration
|
private EncryptionMethod |
findEncryptionMethod(String algorithm) |
private PropertyEncryptionMethod |
findPropertyEncryptionAlgorithm(String algorithm) |
private PasswordBasedCipherPropertyEncryptor |
getPasswordBasedCipherPropertyEncryptor() |
PropertyEncryptorBuilder |
setAlgorithm(String algorithm)
Set Algorithm as either Property Encryption Method or Encryption Method
|
private static final PropertySecretKeyProvider SECRET_KEY_PROVIDER
private final String password
private String algorithm
public PropertyEncryptorBuilder(String password)
password - Password requiredpublic PropertyEncryptorBuilder setAlgorithm(String algorithm)
algorithm - Algorithmpublic PropertyEncryptor build()
private PasswordBasedCipherPropertyEncryptor getPasswordBasedCipherPropertyEncryptor()
private PropertyEncryptionMethod findPropertyEncryptionAlgorithm(String algorithm)
private EncryptionMethod findEncryptionMethod(String algorithm)
Copyright © 2023 Apache NiFi Project. All rights reserved.