NetMirror.apk
Download file
package X2;
import android.net.http.X509TrustManagerExtensions;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.List;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.X509TrustManager;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* JADX INFO: loaded from: classes.dex */
public final class d extends Z2.c {
/* JADX INFO: renamed from: d, reason: collision with root package name */
public static final a f2760d = new a(null);
/* JADX INFO: renamed from: b, reason: collision with root package name */
private final X509TrustManager f2761b;
/* JADX INFO: renamed from: c, reason: collision with root package name */
private final X509TrustManagerExtensions f2762c;
public static final class a {
private a() {
}
public final d a(X509TrustManager x509TrustManager) {
X509TrustManagerExtensions x509TrustManagerExtensions;
D2.h.f(x509TrustManager, "trustManager");
try {
x509TrustManagerExtensions = new X509TrustManagerExtensions(x509TrustManager);
} catch (IllegalArgumentException unused) {
x509TrustManagerExtensions = null;
}
if (x509TrustManagerExtensions != null) {
return new d(x509TrustManager, x509TrustManagerExtensions);
}
return null;
}
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
public d(X509TrustManager x509TrustManager, X509TrustManagerExtensions x509TrustManagerExtensions) {
D2.h.f(x509TrustManager, "trustManager");
D2.h.f(x509TrustManagerExtensions, "x509TrustManagerExtensions");
this.f2761b = x509TrustManager;
this.f2762c = x509TrustManagerExtensions;
}
@Override // Z2.c
public List a(List list, String str) throws SSLPeerUnverifiedException {
D2.h.f(list, "chain");
D2.h.f(str, "hostname");
Object[] array = list.toArray(new X509Certificate[0]);
if (array == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
try {
List<X509Certificate> listCheckServerTrusted = this.f2762c.checkServerTrusted((X509Certificate[]) array, "RSA", str);
D2.h.e(listCheckServerTrusted, "x509TrustManagerExtensio…ficates, \"RSA\", hostname)");
return listCheckServerTrusted;
} catch (CertificateException e4) {
SSLPeerUnverifiedException sSLPeerUnverifiedException = new SSLPeerUnverifiedException(e4.getMessage());
sSLPeerUnverifiedException.initCause(e4);
throw sSLPeerUnverifiedException;
}
}
public boolean equals(Object obj) {
return (obj instanceof d) && ((d) obj).f2761b == this.f2761b;
}
public int hashCode() {
return System.identityHashCode(this.f2761b);
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file