what-the-bank/sources/com/facetec/sdk/ll.java

102 lines
5.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import com.google.common.net.HttpHeaders;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.ProtocolException;
import java.net.SocketTimeoutException;
import java.security.cert.CertificateException;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSocketFactory;
/* loaded from: classes.dex */
public final class ll implements kb {
private final ka a;
public volatile boolean b;
public volatile ky c;
public Object d;
private final boolean e;
public ll(ka kaVar, boolean z) {
this.a = kaVar;
this.e = z;
}
/* JADX WARN: Code restructure failed: missing block: B:119:0x0114, code lost:
if (r4.equals("HEAD") == false) goto L90;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:32:0x0083. Please report as an issue. */
/* JADX WARN: Removed duplicated region for block: B:39:0x0134 A[Catch: IOException -> 0x023b, TryCatch #3 {IOException -> 0x023b, blocks: (B:17:0x0059, B:19:0x005d, B:33:0x0116, B:35:0x011e, B:37:0x0126, B:39:0x0134, B:41:0x013c, B:43:0x0152, B:45:0x015a, B:47:0x0168, B:49:0x0172, B:51:0x0187, B:53:0x0178, B:54:0x0182, B:56:0x0196, B:58:0x019c, B:59:0x01a1, B:88:0x0088, B:90:0x0090, B:92:0x009c, B:94:0x00a2, B:96:0x00ac, B:98:0x00b2, B:100:0x00b9, B:101:0x00c4, B:103:0x00cc, B:105:0x00d7, B:106:0x00de, B:107:0x00be, B:108:0x00df, B:110:0x00e5, B:112:0x00ef, B:114:0x00f8, B:115:0x00fd, B:116:0x0108, B:118:0x010e, B:121:0x0235, B:122:0x023a), top: B:16:0x0059 }] */
/* JADX WARN: Removed duplicated region for block: B:47:0x0168 A[Catch: IOException -> 0x023b, TryCatch #3 {IOException -> 0x023b, blocks: (B:17:0x0059, B:19:0x005d, B:33:0x0116, B:35:0x011e, B:37:0x0126, B:39:0x0134, B:41:0x013c, B:43:0x0152, B:45:0x015a, B:47:0x0168, B:49:0x0172, B:51:0x0187, B:53:0x0178, B:54:0x0182, B:56:0x0196, B:58:0x019c, B:59:0x01a1, B:88:0x0088, B:90:0x0090, B:92:0x009c, B:94:0x00a2, B:96:0x00ac, B:98:0x00b2, B:100:0x00b9, B:101:0x00c4, B:103:0x00cc, B:105:0x00d7, B:106:0x00de, B:107:0x00be, B:108:0x00df, B:110:0x00e5, B:112:0x00ef, B:114:0x00f8, B:115:0x00fd, B:116:0x0108, B:118:0x010e, B:121:0x0235, B:122:0x023a), top: B:16:0x0059 }] */
/* JADX WARN: Removed duplicated region for block: B:58:0x019c A[Catch: IOException -> 0x023b, TryCatch #3 {IOException -> 0x023b, blocks: (B:17:0x0059, B:19:0x005d, B:33:0x0116, B:35:0x011e, B:37:0x0126, B:39:0x0134, B:41:0x013c, B:43:0x0152, B:45:0x015a, B:47:0x0168, B:49:0x0172, B:51:0x0187, B:53:0x0178, B:54:0x0182, B:56:0x0196, B:58:0x019c, B:59:0x01a1, B:88:0x0088, B:90:0x0090, B:92:0x009c, B:94:0x00a2, B:96:0x00ac, B:98:0x00b2, B:100:0x00b9, B:101:0x00c4, B:103:0x00cc, B:105:0x00d7, B:106:0x00de, B:107:0x00be, B:108:0x00df, B:110:0x00e5, B:112:0x00ef, B:114:0x00f8, B:115:0x00fd, B:116:0x0108, B:118:0x010e, B:121:0x0235, B:122:0x023a), top: B:16:0x0059 }] */
/* JADX WARN: Removed duplicated region for block: B:62:0x01b2 */
/* JADX WARN: Removed duplicated region for block: B:83:0x01ae A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:86:0x0139 */
@Override // com.facetec.sdk.kb
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.facetec.sdk.kh a(com.facetec.sdk.kb.c r15) throws java.io.IOException {
/*
Method dump skipped, instructions count: 636
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ll.a(com.facetec.sdk.kb$c):com.facetec.sdk.kh");
}
private jj c(kc kcVar) {
SSLSocketFactory sSLSocketFactory;
HostnameVerifier hostnameVerifier;
jk jkVar;
if (kcVar.a()) {
sSLSocketFactory = this.a.h();
hostnameVerifier = this.a.f();
jkVar = this.a.j();
} else {
sSLSocketFactory = null;
hostnameVerifier = null;
jkVar = null;
}
return new jj(kcVar.i(), kcVar.j(), this.a.c(), this.a.e(), sSLSocketFactory, hostnameVerifier, jkVar, this.a.g(), this.a.d(), this.a.m(), this.a.p(), this.a.b());
}
private boolean c(IOException iOException, ky kyVar, boolean z, ke keVar) {
kyVar.b(iOException);
if (this.a.k()) {
return !(z && (keVar.e() instanceof li)) && c(iOException, z) && kyVar.a();
}
return false;
}
private static boolean c(IOException iOException, boolean z) {
if (iOException instanceof ProtocolException) {
return false;
}
return iOException instanceof InterruptedIOException ? (iOException instanceof SocketTimeoutException) && !z : (((iOException instanceof SSLHandshakeException) && (iOException.getCause() instanceof CertificateException)) || (iOException instanceof SSLPeerUnverifiedException)) ? false : true;
}
private static int c(kh khVar, int i) {
String b = khVar.b(HttpHeaders.RETRY_AFTER);
if (b == null) {
return i;
}
if (b.matches("\\d+")) {
return Integer.valueOf(b).intValue();
}
return Integer.MAX_VALUE;
}
private static boolean c(kh khVar, kc kcVar) {
kc a = khVar.a().a();
return a.i().equals(kcVar.i()) && a.j() == kcVar.j() && a.b().equals(kcVar.b());
}
public final boolean a() {
return this.b;
}
}