package o;

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;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class V2 extends AbstractC1155f00 {

    /* renamed from: o, reason: collision with root package name */
    public final X509TrustManager f366o;
    public final X509TrustManagerExtensions p;

    public V2(X509TrustManager x509TrustManager, X509TrustManagerExtensions x509TrustManagerExtensions) {
        this.f366o = x509TrustManager;
        this.p = x509TrustManagerExtensions;
    }

    public final boolean equals(Object obj) {
        return (obj instanceof V2) && ((V2) obj).f366o == this.f366o;
    }

    public final int hashCode() {
        return System.identityHashCode(this.f366o);
    }

    @Override // o.AbstractC1155f00
    public final List m(String str, List list) throws SSLPeerUnverifiedException {
        try {
            return this.p.checkServerTrusted((X509Certificate[]) list.toArray(new X509Certificate[0]), "RSA", str);
        } catch (CertificateException e) {
            SSLPeerUnverifiedException sSLPeerUnverifiedException = new SSLPeerUnverifiedException(e.getMessage());
            sSLPeerUnverifiedException.initCause(e);
            throw sSLPeerUnverifiedException;
        }
    }
}
