This is an automated email from the ASF dual-hosted git repository.

joewitt pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
     new bc7a20068c NIFI-12093 This closes #7766. Deprecated EncryptContent 
Processor
bc7a20068c is described below

commit bc7a20068c1c0f26c9e3929b9736e522113a9cc0
Author: exceptionfactory <exceptionfact...@apache.org>
AuthorDate: Wed Sep 20 13:36:53 2023 -0500

    NIFI-12093 This closes #7766. Deprecated EncryptContent Processor
    
    Signed-off-by: Joseph Witt <joew...@apache.org>
---
 .../org/apache/nifi/processors/standard/EncryptContent.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EncryptContent.java
 
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EncryptContent.java
index 7fc901b8ff..184190ed3f 100644
--- 
a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EncryptContent.java
+++ 
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EncryptContent.java
@@ -43,6 +43,7 @@ import 
org.apache.nifi.annotation.behavior.SystemResourceConsideration;
 import org.apache.nifi.annotation.behavior.WritesAttribute;
 import org.apache.nifi.annotation.behavior.WritesAttributes;
 import org.apache.nifi.annotation.documentation.CapabilityDescription;
+import org.apache.nifi.annotation.documentation.DeprecationNotice;
 import org.apache.nifi.annotation.documentation.Tags;
 import org.apache.nifi.components.AllowableValue;
 import org.apache.nifi.components.PropertyDescriptor;
@@ -99,6 +100,17 @@ import org.bouncycastle.openpgp.PGPEncryptedData;
         @WritesAttribute(attribute = "encryptcontent.salt_length", description 
= "The raw salt length in bytes"),
         @WritesAttribute(attribute = "encryptcontent.timestamp", description = 
"The timestamp at which the cryptographic operation occurred in 'yyyy-MM-dd 
HH:mm:ss.SSS Z' format"),
                })
+@DeprecationNotice(
+        classNames = {
+                "org.apache.nifi.processors.pgp.EncryptContentPGP",
+                "org.apache.nifi.processors.pgp.DecryptContentPGP",
+                "org.apache.nifi.processors.cipher.DecryptContent",
+                
"org.apache.nifi.processors.cipher.DecryptContentCompatibility",
+                "org.apache.nifi.processors.cipher.EncryptContentAge",
+                "org.apache.nifi.processors.cipher.DecryptContentAge",
+        },
+        reason = "EncryptContentAge or EncryptContentPGP should be used for 
encrypting new files using standard formatting. DecryptContent supports 
deciphering historical files."
+)
 public class EncryptContent extends AbstractProcessor {
 
     public static final String ENCRYPT_MODE = "Encrypt";

Reply via email to