gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 07:17:41 25 4
gpt4 key购买 nike

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

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

最佳答案

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

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

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

The SunRsaSign Provider

The SunRsaSign provider was introduced in JDK 1.3 as an enhancedreplacement 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 providersavailable in the JDK, therefore SunJSSE had to provide its own RSAimplementation in order to use commonly available RSA-basedcertificates. JDK 5 introduced the SunRsaSign provider, which providesall the functionality (and more) of the SunJSSE provider. Applicationstargeted at JDK 5.0 and higher should request instances of theSunRsaSign provider instead.

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

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com