Class FlowConfigurationFileTransformer

java.lang.Object
org.apache.nifi.toolkit.config.transformer.FlowConfigurationFileTransformer
All Implemented Interfaces:
FileTransformer

public class FlowConfigurationFileTransformer extends Object implements FileTransformer
File Transformer supporting transformation of Flow Configuration with sensitive property values
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.nifi.encrypt.PropertyEncryptor
     
    private final org.apache.nifi.encrypt.PropertyEncryptor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowConfigurationFileTransformer(org.apache.nifi.encrypt.PropertyEncryptor inputEncryptor, org.apache.nifi.encrypt.PropertyEncryptor outputEncryptor)
    Flow Configuration File Transformer with components required for decrypting input values and encrypting output values
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    transform(Path inputPath, Path outputPath)
    Transform input file and write contents to output file path

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • inputEncryptor

      private final org.apache.nifi.encrypt.PropertyEncryptor inputEncryptor
    • outputEncryptor

      private final org.apache.nifi.encrypt.PropertyEncryptor outputEncryptor
  • Constructor Details

    • FlowConfigurationFileTransformer

      public FlowConfigurationFileTransformer(org.apache.nifi.encrypt.PropertyEncryptor inputEncryptor, org.apache.nifi.encrypt.PropertyEncryptor outputEncryptor)
      Flow Configuration File Transformer with components required for decrypting input values and encrypting output values
      Parameters:
      inputEncryptor - Property Encryptor for decrypting input values
      outputEncryptor - Property Encryptor for encrypting output values
  • Method Details

    • transform

      public void transform(Path inputPath, Path outputPath) throws IOException
      Description copied from interface: FileTransformer
      Transform input file and write contents to output file path
      Specified by:
      transform in interface FileTransformer
      Parameters:
      inputPath - Input file path to be transformed
      outputPath - Output file path
      Throws:
      IOException - Thrown on input or output processing failures