根据http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientCustomSSL.java的示例
SSLSocketFactory socketFactory = new SSLSocketFactory(trustStore);
应该使用我的自定义信任存储实例化 SSLSocketFactory,但是当我尝试构建我的项目时,我得到了错误
javax.net.ssl.SSLSocketFactory is abstract; cannot be intantiated
示例是否已过时?它对其他人有用吗?