Class SharedEncryptConfig
java.lang.Object
org.apache.nifi.toolkit.config.command.SharedEncryptConfig
- Direct Known Subclasses:
RegistryEncryptConfig,StandardEncryptConfig
Shared Encrypt Configuration for NiFi and NiFi Registry
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Path(package private) Pathprivate static final Stringprivate static final DerivedKeyGenerator(package private) Stringprotected final org.slf4j.Logger(package private) String(package private) String(package private) ProtectionScheme(package private) Path(package private) Path(package private) String(package private) ProtectionScheme(package private) booleanprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Supplier<BootstrapProperties> protected StringGet Previous Bootstrap Root Key provided as hexadecimal encoded key or derived from password for decrypting previous valuesprotected SensitivePropertyProviderGet Input Sensitive Property Provider for decrypting previous valuesprivate SensitivePropertyProviderFactoryprotected StringGet Bootstrap Root Key provided as hexadecimal encoded key or derived from passwordprotected SensitivePropertyProviderFactoryGet Sensitive Property Provider Factory using provided Root Key or Password for derived Root Keyprivate PathgetWorkingPath(Path resourcePath) protected voidProcess authorizers.xml decrypting sensitive values when required and encrypting sensitive values with new settingsprotected voidprocessBootstrapConf(String rootKeyProperty) Process bootstrap.conf writing new Root Key to specified Root Key Property when bootstrap.conf is specifiedprotected voidrunFileTransformer(FileTransformer fileTransformer, Path inputPath, Path outputPath) Run File Transformer using working path based on output path
-
Field Details
-
DEFAULT_PROTECTION_SCHEME
- See Also:
-
WORKING_FILE_NAME_FORMAT
- See Also:
-
derivedKeyGenerator
-
verboseModeEnabled
boolean verboseModeEnabled -
authorizersPath
Path authorizersPath -
outputAuthorizersPath
Path outputAuthorizersPath -
bootstrapConfPath
Path bootstrapConfPath -
outputBootstrapConf
Path outputBootstrapConf -
protectionScheme
ProtectionScheme protectionScheme -
oldProtectionScheme
ProtectionScheme oldProtectionScheme -
key
String key -
oldKey
String oldKey -
password
String password -
oldPassword
String oldPassword -
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
SharedEncryptConfig
public SharedEncryptConfig()
-
-
Method Details
-
processBootstrapConf
Process bootstrap.conf writing new Root Key to specified Root Key Property when bootstrap.conf is specified- Parameters:
rootKeyProperty- Root Key Property in bootstrap.conf to be updated
-
processAuthorizers
protected void processAuthorizers()Process authorizers.xml decrypting sensitive values when required and encrypting sensitive values with new settings -
runFileTransformer
Run File Transformer using working path based on output path- Parameters:
fileTransformer- File Transformer to be invokedinputPath- Input path of file to be transformedoutputPath- Output path for transformed file that defaults to the input path when not specified
-
getSensitivePropertyProviderFactory
Get Sensitive Property Provider Factory using provided Root Key or Password for derived Root Key- Returns:
- Sensitive Property Provider Factory
-
getInputSensitivePropertyProvider
Get Input Sensitive Property Provider for decrypting previous values- Returns:
- Input Sensitive Property Provider
-
getRootKey
Get Bootstrap Root Key provided as hexadecimal encoded key or derived from password- Returns:
- Root Key or null when neither Root Key nor Password specified
-
getInputRootKey
Get Previous Bootstrap Root Key provided as hexadecimal encoded key or derived from password for decrypting previous values- Returns:
- Root Key or null when neither Root Key nor Password specified
-
getWorkingPath
-
getInputSensitivePropertyProviderFactory
-
getBootstrapPropertiesSupplier
-