在哪里可以找到 Java 6 JSSE/JCE 源代码?

发布于 2024-07-05 16:09:09 字数 233 浏览 8 评论 0原文

在哪里可以下载最新版本 Java 的 JSSE 和 JCE 源代码? https://jdk6.dev.java.net/ 上提供的源构建不包含 javax .crypto (JCE) 包或 com.sun.net.ssl.internal (JSSE) 包。

无法调试这些类使得解决 SSL 问题变得异常困难。

Where can I download the JSSE and JCE source code for the latest release of Java? The source build available at https://jdk6.dev.java.net/ does not include the javax.crypto (JCE) packages nor the com.sun.net.ssl.internal (JSSE) packages.

Not being able to debug these classes makes solving SSL issues incredibly difficult.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

帥小哥 2024-07-12 16:09:10

我从以下位置下载了 src jar: http://download.java.net/jdk6/source/

注意:
这是一个自解压 jar,因此仅链接到它是行不通的。

...并且 jar -xvf 也不起作用。

您需要:java -jar

干杯,
杰尔

I downloaded the src jar from: http://download.java.net/jdk6/source/

NOTE:
This is a self extracting jar, so just linking to it won't work.

... and jar -xvf <filename> won't work either.

You need to: java -jar <filename>

cheers,
jer

情魔剑神 2024-07-12 16:09:10

虽然这不能直接回答您的问题,但使用 javax.net.debug 系统属性帮助我解决了 SSL 问题。 -Djavax.net.debug=all 几乎为您提供了所有内容的详细信息。 有关此内容的文档位于 JSSE 调试实用程序

需要注意的是:我发现在 Java 1.4 甚至 1.5 级别上,使用选项“all”的输出并不像在 Java 1.6 级别上使用相同选项那样完整。 例如,1.6显示了网络(socket)读写的实际内容。 也许 1.4 和 1.5 的某些级别也可以,但 1.6 更加一致。

While this doesn't directly answer your question, using the javax.net.debug system property has helped me sort through SSL issues. -Djavax.net.debug=all pretty much gives you everything in gory detail. Documentation on this is at JSSE Debugging Utilities.

One note: I've seen that on Java 1.4 and maybe 1.5 levels, the output with option "all" is not as complete as it is using the same option on the Java 1.6 level. E.g., 1.6 shows the actual contents of network (socket) reads and writes. Maybe some levels of 1.4 and 1.5 do as well, but 1.6 was more consistent.

梦亿 2024-07-12 16:09:10

由于某些未知原因,Orcale 没有发布 JSE 的 source.jar 和 javadocs jar。
我发现只有一个地方可以找到它们 http://jdk7src.sourceforge.net/ 但它已经过时了并且非官方。
唯一的一种方法是克隆 OpenJDK 存储库

For some unknown reason Orcale doesn't released source.jar and javadocs jar for JSE.
I found only one place where you can find them http://jdk7src.sourceforge.net/ but it's outdated and unofficial.
The only one way is to clone OpenJDK repository

美人迟暮 2024-07-12 16:09:10

Jad 放在您的系统路径上。 安装 Eclipse 的 JadClipse 插件。 使用武力,阅读反编译源码。 :-)

Put Jad on your system path. Install JadClipse plugin for Eclipse. Use the force, read the decompiled source. :-)

葬花如无物 2024-07-12 16:09:09

那里:安全组中的 openjdk javax.net

src/share/classes/javax/net
src/share/classes/com/sun/net/ssl
src/share/classes/sun/security/ssl
src/share/classes/sun/net/www/protocol/https

也在该页面上:

src/share/classes/javax/crypto
src/share/classes/com/sun/crypto/provider
src/share/classes/sun/security/pkcs11
src/share/classes/sun/security/mscapi

这些目录包含核心
密码学框架和三
提供商(SunJCE、SunPKCS11、
SunMSCAPI)。 SunJCE 包含 Java
许多流行的实现
算法,后两者
库允许通过以下方式进行调用
标准 Java 加密 API
路由到各自的本地
图书馆。

there: openjdk javax.net in the security group

src/share/classes/javax/net
src/share/classes/com/sun/net/ssl
src/share/classes/sun/security/ssl
src/share/classes/sun/net/www/protocol/https

also on this page:

src/share/classes/javax/crypto
src/share/classes/com/sun/crypto/provider
src/share/classes/sun/security/pkcs11
src/share/classes/sun/security/mscapi

These directories contain the core
cryptography framework and three
providers (SunJCE, SunPKCS11,
SunMSCAPI). SunJCE contains Java
implementations of many popular
algorithms, and the latter two
libraries allow calls made through the
standard Java cryptography APIs to be
routed into their respective native
libraries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文