Bouncycastle for JDK 1.7 and PKCS libraries

和自甴很熟 提交于 2020-01-15 04:42:07

问题


I am trying to locate the PKCS libraries (pkcs10 CSR calls) of the Bouncycastle for JDK 1.7. I came across the official Bouncycastle maven repository and got totally confused because of the amount of different versions. I have specially looked for bcmail.jar (and fount one for JDK 1.5) but did not found any for JDK 1.7.

Can somebody tell me which jar should I use and how can I integrate maven dependency for Bouncycastle in my pom.xml, so that this references the latest bouncycastle release?


回答1:


I have used Bouncycastle version 1.45 in a Java 1.7 project without problems.

<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk16</artifactId>
    <version>1.45</version>
</dependency>



回答2:


Current BC releases use jdk1.5 compliance, see https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.55 (august 2016)



来源:https://stackoverflow.com/questions/23246027/bouncycastle-for-jdk-1-7-and-pkcs-libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!