[ 
https://issues.apache.org/jira/browse/NIFI-14203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922790#comment-17922790
 ] 

Daniel Stieglitz commented on NIFI-14203:
-----------------------------------------

[~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)

Reply via email to