package h5; import java.security.cert.Certificate; import java.util.Collections; import java.util.List; import javax.net.ssl.SSLPeerUnverifiedException; import javax.net.ssl.SSLSession; /* loaded from: classes2.dex */ public final class z { /* renamed from: a, reason: collision with root package name */ private final q0 f10328a; /* renamed from: b, reason: collision with root package name */ private final l f10329b; /* renamed from: c, reason: collision with root package name */ private final List f10330c; /* renamed from: d, reason: collision with root package name */ private final List f10331d; private z(q0 q0Var, l lVar, List list, List list2) { this.f10328a = q0Var; this.f10329b = lVar; this.f10330c = list; this.f10331d = list2; } public static z b(SSLSession sSLSession) { Certificate[] certificateArr; String cipherSuite = sSLSession.getCipherSuite(); if (cipherSuite == null) { throw new IllegalStateException("cipherSuite == null"); } l c10 = l.c(cipherSuite); String protocol = sSLSession.getProtocol(); if (protocol == null) { throw new IllegalStateException("tlsVersion == null"); } q0 b10 = q0.b(protocol); try { certificateArr = sSLSession.getPeerCertificates(); } catch (SSLPeerUnverifiedException unused) { certificateArr = null; } List u10 = certificateArr != null ? i5.c.u(certificateArr) : Collections.emptyList(); Certificate[] localCertificates = sSLSession.getLocalCertificates(); return new z(b10, c10, u10, localCertificates != null ? i5.c.u(localCertificates) : Collections.emptyList()); } public l a() { return this.f10329b; } public List c() { return this.f10330c; } public boolean equals(Object obj) { if (!(obj instanceof z)) { return false; } z zVar = (z) obj; return this.f10328a.equals(zVar.f10328a) && this.f10329b.equals(zVar.f10329b) && this.f10330c.equals(zVar.f10330c) && this.f10331d.equals(zVar.f10331d); } public int hashCode() { return ((((((this.f10328a.hashCode() + 527) * 31) + this.f10329b.hashCode()) * 31) + this.f10330c.hashCode()) * 31) + this.f10331d.hashCode(); } }