Class StandardEncryptConfig

java.lang.Object
org.apache.nifi.toolkit.config.command.SharedEncryptConfig
org.apache.nifi.toolkit.config.command.StandardEncryptConfig
All Implemented Interfaces:
Runnable

public class StandardEncryptConfig extends SharedEncryptConfig implements Runnable
Encrypt Config Standard implementation for NiFi configuration files
  • Field Details

    • BOOTSTRAP_ROOT_KEY_PROPERTY

      static final String BOOTSTRAP_ROOT_KEY_PROPERTY
      See Also:
    • DEFAULT_PROPERTIES_ALGORITHM

      private static final String 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()
      Specified by:
      run in interface Runnable
    • processBootstrapConf

      protected void processBootstrapConf(String rootKeyProperty)
      Description copied from class: SharedEncryptConfig
      Process bootstrap.conf writing new Root Key to specified Root Key Property when bootstrap.conf is specified
      Overrides:
      processBootstrapConf in class SharedEncryptConfig
      Parameters:
      rootKeyProperty - Root Key Property in bootstrap.conf to be updated
    • processAuthorizers

      protected void processAuthorizers()
      Description copied from class: SharedEncryptConfig
      Process authorizers.xml decrypting sensitive values when required and encrypting sensitive values with new settings
      Overrides:
      processAuthorizers in class SharedEncryptConfig
    • loadApplicationProperties

      private ApplicationProperties loadApplicationProperties()
    • processApplicationProperties

      private void processApplicationProperties(ApplicationProperties applicationProperties)
    • processFlowConfiguration

      private void processFlowConfiguration(ApplicationProperties applicationProperties)
    • 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

      private Set<String> getSensitivePropertyNames()