MCPcopy Create free account
hub / github.com/Devo919/Gewechat / createSSLSocketFactory

Method createSSLSocketFactory

src/main/java/util/OkhttpUtil.java:55–65  ·  view source on GitHub ↗
(TrustManager[] trustAllCerts)

Source from the content-addressed store, hash-verified

53 }
54
55 private static SSLSocketFactory createSSLSocketFactory(TrustManager[] trustAllCerts) {
56 SSLSocketFactory ssfFactory = null;
57 try {
58 SSLContext sc = SSLContext.getInstance("SSL");
59 sc.init(null, trustAllCerts, new SecureRandom());
60 ssfFactory = sc.getSocketFactory();
61 } catch (Exception e) {
62 e.printStackTrace();
63 }
64 return ssfFactory;
65 }
66
67 public static JSONObject postJSON(String route,JSONObject param){
68 Map<String,Object> header = new HashMap<>();

Callers 1

okHttpClientMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected