[
https://issues.apache.org/jira/browse/NIFI-16384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120011#comment-18120011
]
ASF subversion and git services commented on NIFI-16384:
--------------------------------------------------------
Commit 913a389dfd6eb8945b94f0951b92be661207f002 in nifi's branch
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=913a389dfd6 ]
NIFI-16384 Replaced deprecated PGP Decryptor usage with Key Pair (#11723)
> 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
> Assignee: David Handermann
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The NIFI-16340 upgrade of Bouncycastle from 1.85 to 1.86 resulted in the
> following warning messages.
> {code:java}
> [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
> [WARNING]
> /home/runner/work/nifi/nifi/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-processors/src/test/java/org/apache/nifi/processors/pgp/EncryptContentPGPTest.java:[330,63]
> [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)