用于JDK 1.7和PKCS库的Bouncycastle [英] Bouncycastle for JDK 1.7 and PKCS libraries

查看:282
本文介绍了用于JDK 1.7和PKCS库的Bouncycastle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到JDK 1.7的Bouncycastle的PKCS库(pkcs10 CSR调用).我遇到了官方的Bouncycastle Maven存储库,由于版本不同而感到困惑.我特意寻找了bcmail.jar(对于JDK 1.5寻找了一个),但是没有找到JDK 1.7的任何东西.

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.

有人可以告诉我应该使用哪个jar,如何在pom.xml中集成Bouncycastle的maven依赖关系,以便它引用最新的Bouncycastle版本?

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?

推荐答案

我在Java 1.7项目中使用Bouncycastle 1.45版本没有问题.

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>

这篇关于用于JDK 1.7和PKCS库的Bouncycastle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆