|
@@ -1,14 +1,4 @@
|
1
|
|
-package com.community.huiju.common.hk;
|
2
|
|
-
|
3
|
|
-import java.security.GeneralSecurityException;
|
4
|
|
-import java.security.KeyStore;
|
5
|
|
-import java.security.cert.CertificateException;
|
6
|
|
-import java.security.cert.X509Certificate;
|
7
|
|
-import java.util.HashMap;
|
8
|
|
-import java.util.Map;
|
9
|
|
-import javax.net.ssl.HostnameVerifier;
|
10
|
|
-import javax.net.ssl.SSLContext;
|
11
|
|
-import javax.net.ssl.SSLSession;
|
|
1
|
+package com.community.commom.hk;
|
12
|
2
|
|
13
|
3
|
import com.alibaba.fastjson.JSONObject;
|
14
|
4
|
import org.apache.commons.io.IOUtils;
|
|
@@ -27,6 +17,16 @@ import org.apache.http.impl.client.HttpClients;
|
27
|
17
|
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
28
|
18
|
import org.apache.http.ssl.SSLContextBuilder;
|
29
|
19
|
|
|
20
|
+import javax.net.ssl.HostnameVerifier;
|
|
21
|
+import javax.net.ssl.SSLContext;
|
|
22
|
+import javax.net.ssl.SSLSession;
|
|
23
|
+import java.security.GeneralSecurityException;
|
|
24
|
+import java.security.KeyStore;
|
|
25
|
+import java.security.cert.CertificateException;
|
|
26
|
+import java.security.cert.X509Certificate;
|
|
27
|
+import java.util.HashMap;
|
|
28
|
+import java.util.Map;
|
|
29
|
+
|
30
|
30
|
public class HttpClientSSLUtils {
|
31
|
31
|
private static HttpClient client = null;
|
32
|
32
|
protected static final Integer DEFAULT_CONNECTION_TIME_OUT = 100000;
|