sslcontextbuilder和SSLContexts已弃用 [英] sslcontextbuilder and SSLContexts deprecated

查看:627
本文介绍了sslcontextbuilder和SSLContexts已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JDK Compilance JavaSE-1.7,Eclipse Luna和Apache httpclient 4.4.1使用JDK1.8。

I am using JDK1.8 with JDK Compilance JavaSE-1.7, Eclipse Luna, and Apache httpclient 4.4.1.

我在Eclipse中收到警告<$不推荐使用c $ c> sslcontextbuilder 和 SSLContexts 。这些类的替代方法是什么?

I am getting warning in Eclipse that sslcontextbuilder and SSLContexts are deprecated. What are alternatives for these classes?

推荐答案

我实际上只是在看这个,看来HttpCLient SSLContexts类在从org.apache.http.conn.ssl.SSLContexts移动到org.apache.http.ssl.SSLContexts的过程。我将导入更改为这些新包,现在似乎很好。不确定你对sslcontextbuilder的引用是什么,但我很确定它也有一个替代实现。让我知道更多细节,我可以查看。

I have actually just been looking at this and it appears that the HttpCLient SSLContexts class is in the process of being moved from org.apache.http.conn.ssl.SSLContexts to org.apache.http.ssl.SSLContexts. I changed my imports to these new packages and it appears to be good now. Not sure what your reference is for sslcontextbuilder but I am pretty sure it has an alternate implementation as well. Let me know more details and I can check.

这篇关于sslcontextbuilder和SSLContexts已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆