package okhttp3.internal.connection; import java.security.cert.Certificate; import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import o.AbstractC14961gcz; import o.C14957gcv; import o.InterfaceC14890gbN; import okhttp3.Handshake; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class RealConnection$connectTls$2 extends AbstractC14961gcz implements InterfaceC14890gbN> { final RealConnection this$0; @Override // o.InterfaceC14890gbN public final List invoke() { Handshake handshake; handshake = this.this$0.handshake; C14957gcv.e(handshake); List peerCertificates = handshake.peerCertificates(); C14957gcv.e(peerCertificates, ""); ArrayList arrayList = new ArrayList(peerCertificates instanceof Collection ? peerCertificates.size() : 10); Iterator it = peerCertificates.iterator(); while (it.hasNext()) { arrayList.add((X509Certificate) ((Certificate) it.next())); } return arrayList; } /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RealConnection$connectTls$2(RealConnection realConnection) { super(0); this.this$0 = realConnection; } }