在使用Java程序签发数字证书时,需要用到X509CertImpl 、X509CertInfo、X500Name等类,但这些类好像在JDK 1.6找不到了啊,是怎么回事?
我觉得你在用你自己的lib替换java5的标准class
在eclipse里面设置
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
这部分内容在jdk1.6.0_20\jre\lib\rt.jar中
eclipse里面用 ctrl + shift + T 来搜索
intellij 用 ctrl + n来搜索
正常引入就可以了呀!!!
Access restriction: The constructor X509CertImpl(byte[]) is not accessible due to restriction on required library
new X509CertImpl(encod1);这个构造方法访问被限制了。。。。