You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2025/01/31 17:40:00 UTC
[jira] [Comment Edited] (NIFI-14203) Replace deprecated bouncycastle features with suggested equivalents
[ https://issues.apache.org/jira/browse/NIFI-14203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922790#comment-17922790 ]
Daniel Stieglitz edited comment on NIFI-14203 at 1/31/25 5:39 PM:
------------------------------------------------------------------
[~exceptionfactory]
I am working on the following warning
{code:java}
[WARNING] nifi-2.2.0/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-test-utils/src/main/java/org/apache/nifi/pg
p/util/PGPSecretKeyGenerator.java:[115,15] [deprecation] JcaPGPKeyPair(int,KeyPair,Date) in JcaPGPKeyPair has been deprecated{code}
The [javadocs|https://javadoc.io/static/org.bouncycastle/bcpg-jdk18on/1.80/org/bouncycastle/openpgp/operator/jcajce/JcaPGPKeyPair.html#%3Cinit%3E(int,java.security.KeyPair,java.util.Date)] suggests using the version constructor which takes an int for the version. I have been looking where to get that but I am really not sure as I do not see it in the KeyPair or in the objects it holds. Please advise.
was (Author: JIRAUSER294662):
[~exceptionfactory]
I am working on the following warning
[WARNING] nifi-2.2.0/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-test-utils/src/main/java/org/apache/nifi/pg
p/util/PGPSecretKeyGenerator.java:[115,15] [deprecation] JcaPGPKeyPair(int,KeyPair,Date) in JcaPGPKeyPair has been deprecated
The [javadocs|https://javadoc.io/static/org.bouncycastle/bcpg-jdk18on/1.80/org/bouncycastle/openpgp/operator/jcajce/JcaPGPKeyPair.html#%3Cinit%3E(int,java.security.KeyPair,java.util.Date)] suggests using the version constructor which takes an int for the version. I have been looking where to get that but I am really not sure as I do not see it in the KeyPair or in the objects it holds. Please advise.
> Replace deprecated bouncycastle features with suggested equivalents
> -------------------------------------------------------------------
>
> Key: NIFI-14203
> URL: https://issues.apache.org/jira/browse/NIFI-14203
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
>
> When building the code the warnings below indicate there are deprecated bouncycastle features being used. This tickets aims to replace those with their suggested equivalents.
> {code:java}
> [WARNING] nifi-2.2.0/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-test-utils/src/main/java/org/apache/nifi/pg
> p/util/PGPOperationUtils.java:[104,57] [deprecation] PGPSignatureGenerator(PGPContentSignerBuilder) in PGPSignatureGenerator has been deprecated
> [WARNING] nifi-2.2.0/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-test-utils/src/main/java/org/apache/nifi/pg
> p/util/PGPSecretKeyGenerator.java:[115,15] [deprecation] JcaPGPKeyPair(int,KeyPair,Date) in JcaPGPKeyPair has been deprecated
> [WARNING] nifi-2.2.0/nifi-extension-bundles/nifi-pgp-bundle/nifi-pgp-processors/src/main/java/org/apache/nifi/pr
> ocessors/pgp/SignContentPGP.java:[293,61] [deprecation] PGPSignatureGenerator(PGPContentSignerBuilder) in PGPSignatureGenerator has been deprecated{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)