MCPcopy Create free account
hub / github.com/FongMi/TV / getSSLContext

Method getSSLContext

catvod/src/main/java/com/github/catvod/net/OkHttp.java:198–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 private static SSLContext getSSLContext() {
199 try {
200 SSLContext context = SSLContext.getInstance("TLS");
201 context.init(null, new TrustManager[]{trustAllCertificates()}, new SecureRandom());
202 return context;
203 } catch (Throwable e) {
204 return null;
205 }
206 }
207
208 @SuppressLint({"TrustAllX509TrustManager", "CustomX509TrustManager"})
209 private static X509TrustManager trustAllCertificates() {

Callers 1

getBuilderMethod · 0.95

Calls 3

trustAllCertificatesMethod · 0.95
getInstanceMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected