Daniel Stieglitz created NIFI-16384:
---------------------------------------

             Summary: Replace use of deprecated BcPublicKeyDataDecryptorFactory 
constructor with API suggested replacement
                 Key: NIFI-16384
                 URL: https://issues.apache.org/jira/browse/NIFI-16384
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Daniel Stieglitz


The NIFI-16340 upgrade of Bouncycastle from 1.85 to 1.86 resulted in the 
following warning message.

{code:java}
2026-09-23T09:32:36.7051102Z ##[warning][WARNING] 
/home/runner/work/nifi/nifi/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-processors/src/main/java/org/apache/nifi/processors/pgp/DecryptContentPGP.java:[420,75]
 [deprecation] BcPublicKeyDataDecryptorFactory(PGPPrivateKey) in 
BcPublicKeyDataDecryptorFactory has been deprecated
{code}

Bouncycastle  1.86 deprecated the use of the  BcPublicKeyDataDecryptorFactory 
which takes a PGPPrivateKey in favor of a constructor which takes a PGPKeyPair 
as seen in the 
[javadocs|https://javadoc.io/doc/org.bouncycastle/bcpg-jdk18on/latest/org/bouncycastle/openpgp/operator/bc/BcPublicKeyDataDecryptorFactory.html].
 
The purpose of this ticket is to switch over to the use of the new constructor.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to