what-the-bank/sources/o/AuP.java

77 lines
2.9 KiB
Java

package o;
import java.security.cert.CertificateParsingException;
import java.security.cert.X509Certificate;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.regex.Pattern;
/* loaded from: classes2.dex */
public final class AuP {
private static final String[] a;
private static final Pattern c = Pattern.compile("^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$");
static {
String[] strArr = {"ac", "co", "com", "ed", "edu", "go", "gouv", "gov", "info", "lg", "ne", "net", "or", "org"};
a = strArr;
Arrays.sort(strArr);
}
private static String[] d(X509Certificate x509Certificate) {
Collection<List<?>> collection;
LinkedList linkedList = new LinkedList();
try {
collection = x509Certificate.getSubjectAlternativeNames();
} catch (CertificateParsingException unused) {
collection = null;
}
if (collection != null) {
for (List<?> list : collection) {
if (((Integer) list.get(0)).intValue() == 2) {
linkedList.add((String) list.get(1));
}
}
}
if (linkedList.isEmpty()) {
return null;
}
String[] strArr = new String[linkedList.size()];
linkedList.toArray(strArr);
return strArr;
}
private static int b(String str) {
int i = 0;
for (int i2 = 0; i2 < str.length(); i2++) {
if (str.charAt(i2) == '.') {
i++;
}
}
return i;
}
/* JADX WARN: Code restructure failed: missing block: B:188:0x02fc, code lost:
if (java.util.Arrays.binarySearch(o.AuP.a, r7.substring(2, r9)) < 0) goto L153;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:198:0x032a A[EDGE_INSN: B:198:0x032a->B:199:0x032a BREAK A[LOOP:9: B:172:0x02a4->B:203:?], SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:203:? A[LOOP:9: B:172:0x02a4->B:203:?, LOOP_END, SYNTHETIC] */
/* JADX WARN: Type inference failed for: r7v13 */
/* JADX WARN: Type inference failed for: r7v14, types: [int] */
/* JADX WARN: Type inference failed for: r7v49 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final void b(java.lang.String r16, java.security.cert.X509Certificate r17) throws javax.net.ssl.SSLException {
/*
Method dump skipped, instructions count: 866
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AuP.b(java.lang.String, java.security.cert.X509Certificate):void");
}
}