top.jfunc.common.http.base.ssl.DefaultTrustManager2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of httpclient Show documentation
Show all versions of httpclient Show documentation
http客户端请求工具类,有多种实现:OkHttp3、ApacheHttpClient、HttpURLConnection、Jodd-Http,可以随意切换http实现
package top.jfunc.common.http.base.ssl;
import java.security.cert.X509Certificate;
/**
* 防止OKHttp3的空指针
* @author xiongshiyan
*/
public class DefaultTrustManager2 extends DefaultTrustManager {
@Override
public X509Certificate[] getAcceptedIssuers() {
X509Certificate[] certificates = {};
return certificates;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy