本文介绍了sun.security.x509.CertAndKeyGen和sun.security.pkcs.PKCS10 - 在JDK8中丢失。实施建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JDK8中,类 sun.security.x509.CertAndKeyGen 不再存在。此外还缺少 sun.security.pkcs.PKCS10 。在JDK7中他们存在。什么可以替代这些类方法?

In JDK8 the class sun.security.x509.CertAndKeyGen does not exists anymore. Also sun.security.pkcs.PKCS10 is missing. In JDK7 they existed. What could be an alternatives to these classes methods?

推荐答案

我认为你在寻找:

您可以在JRE库下的 rt.jar 中找到它。

You'll find it inside the rt.jar under the JRE libraries.

请记住,此课程不在之内,它可能仅适用于,例如不会有它。

Keep in mind this class is outside of J2SE, it's likely only available with OpenJDK, so for example the GNU Compiler won't have it.

这篇关于sun.security.x509.CertAndKeyGen和sun.security.pkcs.PKCS10 - 在JDK8中丢失。实施建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 18:36