classpath - 从哪里可以获得 sunrsasign.jar 的正式副本?

标签 classpath java

我正在尝试链接正在寻找/jdk**/jre/lib/sunrsasign.jar 但找不到的第三方库。我在网上发现许多线程说他们从其他地方复制它并让它工作,但我能找到的唯一复制它的地方是来源有问题的第三方团体。考虑到这是一个密码学库,我无法想象使用他们的版本是个好主意。

我的问题是双重的。第一个是“为什么这个文件不存在于标准 Java 发行版中?”第二个是“我可以从哪里得到它?”

最佳答案

显然它确实存在于标准 Java 发行版中,但不存在于当前的发行版中。

sunrsasign.jar 是 SunRsaSign 提供程序,如说明 here .它说:

This document describes the technical details of the providers shipped as part of Sun's Java Environment.

The SunRsaSign Provider

The SunRsaSign provider was introduced in JDK 1.3 as an enhanced replacement for the RSA signatures in the SunJSSE provider.

在我的 64 位 Oracle JDK 1.7.0_09 中,sunrsasign.jar 文件不存在,进行网络搜索我们可以看到 the class SunRsaSign is contained within rt.jar .使用jarfinder我们可以看到对于 JDK 1.4.2,jar 确实作为一个单独的文件存在。来自 google cache我们可以看到它曾经在jre/lib/ext/jre/lib.

此外,sunprovider docs

In earlier JDK releases, there were no RSA signature providers available in the JDK, therefore SunJSSE had to provide its own RSA implementation in order to use commonly available RSA-based certificates. JDK 5 introduced the SunRsaSign provider, which provides all the functionality (and more) of the SunJSSE provider. Applications targeted at JDK 5.0 and higher should request instances of the SunRsaSign provider instead.

我认为它曾经位于您提到的由 sun 提供的单独 jar 中,并且自 JDK 5 以来它已集成到 JDK 中,而不是作为单独的 jar。

关于classpath - 从哪里可以获得 sunrsasign.jar 的正式副本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15885401/

相关文章:

java - 列出 JRE 上的 Java 虚拟机

java - 将 C 字节数组解析为 Java ByteBuffer。

java - 这个简单查询中正确的 where 条件..我缺少什么?

java - Swings ImageIcon 构造函数非常慢

java - Atmosphere 框架,BroadcasterFactory.getDefault() 替代方案

java - 在 Java 中从命令行运行它

java - 无法找到或加载主类

java - Android webview 没有加载 url?

java - 当 Web 项目从 Eclipse 导出为 war 文件时无法导出非 jar 文件

使用 Javassist 的 Spring 框架项目中的 javassist.NotFoundException 错误 - 需要帮助了解如何设置类路径和类名