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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/87030/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 08:09:25  来源:igfitidea点击:

Where to find Java 6 JSSE/JCE Source Code?

javajcejsse

提问by

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.

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

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

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

回答by PW.

there: openjdk javax.netin the security group

那里:安全组中的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

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). SunJCEcontains 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.

这些目录包含核心加密框架和三个提供程序(SunJCE、SunPKCS11、SunMSCAPI)。SunJCE包含许多流行算法的 Java 实现,后两个库允许将通过标准 Java 加密 API 进行的调用路由到各自的本机库中。

回答by Matej

Put Jadon your system path. Install JadClipseplugin for Eclipse. Use the force, read the decompiled source. :-)

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

回答by Chris Markle

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.

虽然这不能直接回答您的问题,但使用 javax.net.debug 系统属性帮助我解决了 SSL 问题。-Djavax.net.debug=all 几乎为您提供了所有细节。这方面的文档位于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.

一个注意事项:我已经看到,在 Java 1.4 甚至 1.5 级别上,带有选项“all”的输出不像在 Java 1.6 级别上使用相同选项那么完整。例如,1.6 显示了网络(套接字)读写的实际内容。也许 1.4 和 1.5 的某些级别也可以,但 1.6 更加一致。

回答by jer

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

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

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

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

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

……而且jar -xvf <filename>也行不通。

You need to: java -jar <filename>

你需要: java -jar <filename>

cheers, jer

干杯,耶

回答by Sergey Ponomarev

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

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