package com.facetec.sdk; import java.io.IOException; import java.io.InterruptedIOException; import java.net.ProtocolException; import java.security.cert.CertificateException; import java.util.List; import javax.net.ssl.SSLException; import javax.net.ssl.SSLHandshakeException; import javax.net.ssl.SSLPeerUnverifiedException; import javax.net.ssl.SSLProtocolException; import javax.net.ssl.SSLSocket; /* loaded from: classes.dex */ public final class kw { boolean a; int b = 0; final List c; boolean e; public kw(List list) { this.c = list; } public final boolean a(IOException iOException) { this.e = true; if (!this.a || (iOException instanceof ProtocolException) || (iOException instanceof InterruptedIOException)) { return false; } boolean z = iOException instanceof SSLHandshakeException; if ((z && (iOException.getCause() instanceof CertificateException)) || (iOException instanceof SSLPeerUnverifiedException)) { return false; } return z || (iOException instanceof SSLProtocolException) || (iOException instanceof SSLException); } /* JADX INFO: Access modifiers changed from: package-private */ public final boolean a(SSLSocket sSLSocket) { for (int i = this.b; i < this.c.size(); i++) { if (this.c.get(i).b(sSLSocket)) { return true; } } return false; } }