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

时间:2020-03-05 18:59:52  来源:igfitidea点击:

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

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

解决方案

回答

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

回答

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

回答

尽管这不能直接回答问题,但是使用javax.net.debug系统属性可以帮助我解决SSL问题。 -Djavax.net.debug = all几乎可以为我们提供所有细节。有关此文档,请参见JSSE调试实用程序。

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