【发布时间】:2012-10-31 14:58:10
【问题描述】:
我正在使用 2003 年的一些代码。有对以下类的引用:
new com.sun.net.ssl.internal.ssl.Provider()
导致错误:
Access restriction: The type Provider is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jsse.jar
有人对使用此类的合适替代方案有任何建议吗?
【问题讨论】:
-
我不知道那门课,但我能读懂'ssl'。如果那是安全套接字层,请考虑javax.net.ssl.*
-
很少有任何理由像这样手动实例化提供程序。周围的代码是什么?