Class StandardEncryptConfig
java.lang.Object
org.apache.nifi.toolkit.config.command.SharedEncryptConfig
org.apache.nifi.toolkit.config.command.StandardEncryptConfig
- All Implemented Interfaces:
Runnable
Encrypt Config Standard implementation for NiFi configuration files
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Path(package private) static final Stringprivate static final String(package private) Path(package private) boolean(package private) Path(package private) boolean(package private) String(package private) Path(package private) Path(package private) Path(package private) StringFields inherited from class org.apache.nifi.toolkit.config.command.SharedEncryptConfig
authorizersPath, bootstrapConfPath, key, logger, oldKey, oldPassword, oldProtectionScheme, outputAuthorizersPath, outputBootstrapConf, password, protectionScheme, verboseModeEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.nifi.encrypt.PropertyEncryptorgetInputPropertyEncryptor(ApplicationProperties applicationProperties) private org.apache.nifi.encrypt.PropertyEncryptorgetOutputPropertyEncryptor(ApplicationProperties applicationProperties) private ApplicationPropertiesprivate voidprocessApplicationProperties(ApplicationProperties applicationProperties) 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 specifiedprivate voidprocessFlowConfiguration(ApplicationProperties applicationProperties) private voidvoidrun()Methods inherited from class org.apache.nifi.toolkit.config.command.SharedEncryptConfig
getInputRootKey, getInputSensitivePropertyProvider, getRootKey, getSensitivePropertyProviderFactory, runFileTransformer
-
Field Details
-
BOOTSTRAP_ROOT_KEY_PROPERTY
- See Also:
-
DEFAULT_PROPERTIES_ALGORITHM
- See Also:
-
migrationRequested
boolean migrationRequested -
flowConfigurationRequested
boolean flowConfigurationRequested -
applicationPropertiesPath
Path applicationPropertiesPath -
outputApplicationPropertiesPath
Path outputApplicationPropertiesPath -
loginIdentityProvidersPath
Path loginIdentityProvidersPath -
outputLoginIdentityProvidersPath
Path outputLoginIdentityProvidersPath -
flowConfigurationPath
Path flowConfigurationPath -
outputFlowConfigurationPath
Path outputFlowConfigurationPath -
sensitivePropertiesKey
String sensitivePropertiesKey -
newFlowAlgorithm
String newFlowAlgorithm
-
-
Constructor Details
-
StandardEncryptConfig
public StandardEncryptConfig()
-
-
Method Details
-
run
public void run() -
processBootstrapConf
Description copied from class:SharedEncryptConfigProcess bootstrap.conf writing new Root Key to specified Root Key Property when bootstrap.conf is specified- Overrides:
processBootstrapConfin classSharedEncryptConfig- Parameters:
rootKeyProperty- Root Key Property in bootstrap.conf to be updated
-
processAuthorizers
protected void processAuthorizers()Description copied from class:SharedEncryptConfigProcess authorizers.xml decrypting sensitive values when required and encrypting sensitive values with new settings- Overrides:
processAuthorizersin classSharedEncryptConfig
-
loadApplicationProperties
-
processApplicationProperties
-
processFlowConfiguration
-
processLoginIdentityProviders
private void processLoginIdentityProviders() -
getInputPropertyEncryptor
private org.apache.nifi.encrypt.PropertyEncryptor getInputPropertyEncryptor(ApplicationProperties applicationProperties) -
getOutputPropertyEncryptor
private org.apache.nifi.encrypt.PropertyEncryptor getOutputPropertyEncryptor(ApplicationProperties applicationProperties) -
getSensitivePropertyNames
-