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

229 lines
8.8 KiB
Java

package com.facetec.sdk;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/* loaded from: classes.dex */
public final class jn {
public static final jn a;
public static final jn b;
public static final jn d;
public static final jn e;
public static final jn f;
public static final jn g;
public static final jn h;
public static final jn i;
public static final jn j;
public static final jn k;
public static final jn l;
public static final jn m;
public static final jn n;
/* renamed from: o, reason: collision with root package name */
public static final jn f6445o;
public static final jn p;
public static final jn q;
public static final jn r;
public static final jn s;
final String t;
static final Comparator<String> c = new Comparator<String>() { // from class: com.facetec.sdk.jn.5
@Override // java.util.Comparator
public final /* synthetic */ int compare(String str, String str2) {
String str3 = str;
String str4 = str2;
int min = Math.min(str3.length(), str4.length());
for (int i2 = 4; i2 < min; i2++) {
char charAt = str3.charAt(i2);
char charAt2 = str4.charAt(i2);
if (charAt != charAt2) {
return charAt < charAt2 ? -1 : 1;
}
}
int length = str3.length();
int length2 = str4.length();
if (length != length2) {
return length < length2 ? -1 : 1;
}
return 0;
}
};
private static final Map<String, jn> w = new LinkedHashMap();
static {
a("SSL_RSA_WITH_NULL_MD5");
a("SSL_RSA_WITH_NULL_SHA");
a("SSL_RSA_EXPORT_WITH_RC4_40_MD5");
a("SSL_RSA_WITH_RC4_128_MD5");
a("SSL_RSA_WITH_RC4_128_SHA");
a("SSL_RSA_EXPORT_WITH_DES40_CBC_SHA");
a("SSL_RSA_WITH_DES_CBC_SHA");
a = a("SSL_RSA_WITH_3DES_EDE_CBC_SHA");
a("SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA");
a("SSL_DHE_DSS_WITH_DES_CBC_SHA");
a("SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA");
a("SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA");
a("SSL_DHE_RSA_WITH_DES_CBC_SHA");
a("SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA");
a("SSL_DH_anon_EXPORT_WITH_RC4_40_MD5");
a("SSL_DH_anon_WITH_RC4_128_MD5");
a("SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA");
a("SSL_DH_anon_WITH_DES_CBC_SHA");
a("SSL_DH_anon_WITH_3DES_EDE_CBC_SHA");
a("TLS_KRB5_WITH_DES_CBC_SHA");
a("TLS_KRB5_WITH_3DES_EDE_CBC_SHA");
a("TLS_KRB5_WITH_RC4_128_SHA");
a("TLS_KRB5_WITH_DES_CBC_MD5");
a("TLS_KRB5_WITH_3DES_EDE_CBC_MD5");
a("TLS_KRB5_WITH_RC4_128_MD5");
a("TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA");
a("TLS_KRB5_EXPORT_WITH_RC4_40_SHA");
a("TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5");
a("TLS_KRB5_EXPORT_WITH_RC4_40_MD5");
d = a("TLS_RSA_WITH_AES_128_CBC_SHA");
a("TLS_DHE_DSS_WITH_AES_128_CBC_SHA");
a("TLS_DHE_RSA_WITH_AES_128_CBC_SHA");
a("TLS_DH_anon_WITH_AES_128_CBC_SHA");
b = a("TLS_RSA_WITH_AES_256_CBC_SHA");
a("TLS_DHE_DSS_WITH_AES_256_CBC_SHA");
a("TLS_DHE_RSA_WITH_AES_256_CBC_SHA");
a("TLS_DH_anon_WITH_AES_256_CBC_SHA");
a("TLS_RSA_WITH_NULL_SHA256");
a("TLS_RSA_WITH_AES_128_CBC_SHA256");
a("TLS_RSA_WITH_AES_256_CBC_SHA256");
a("TLS_DHE_DSS_WITH_AES_128_CBC_SHA256");
a("TLS_RSA_WITH_CAMELLIA_128_CBC_SHA");
a("TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA");
a("TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA");
a("TLS_DHE_RSA_WITH_AES_128_CBC_SHA256");
a("TLS_DHE_DSS_WITH_AES_256_CBC_SHA256");
a("TLS_DHE_RSA_WITH_AES_256_CBC_SHA256");
a("TLS_DH_anon_WITH_AES_128_CBC_SHA256");
a("TLS_DH_anon_WITH_AES_256_CBC_SHA256");
a("TLS_RSA_WITH_CAMELLIA_256_CBC_SHA");
a("TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA");
a("TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA");
a("TLS_PSK_WITH_RC4_128_SHA");
a("TLS_PSK_WITH_3DES_EDE_CBC_SHA");
a("TLS_PSK_WITH_AES_128_CBC_SHA");
a("TLS_PSK_WITH_AES_256_CBC_SHA");
a("TLS_RSA_WITH_SEED_CBC_SHA");
e = a("TLS_RSA_WITH_AES_128_GCM_SHA256");
f = a("TLS_RSA_WITH_AES_256_GCM_SHA384");
a("TLS_DHE_RSA_WITH_AES_128_GCM_SHA256");
a("TLS_DHE_RSA_WITH_AES_256_GCM_SHA384");
a("TLS_DHE_DSS_WITH_AES_128_GCM_SHA256");
a("TLS_DHE_DSS_WITH_AES_256_GCM_SHA384");
a("TLS_DH_anon_WITH_AES_128_GCM_SHA256");
a("TLS_DH_anon_WITH_AES_256_GCM_SHA384");
a("TLS_EMPTY_RENEGOTIATION_INFO_SCSV");
a("TLS_FALLBACK_SCSV");
a("TLS_ECDH_ECDSA_WITH_NULL_SHA");
a("TLS_ECDH_ECDSA_WITH_RC4_128_SHA");
a("TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA");
a("TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA");
a("TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA");
a("TLS_ECDHE_ECDSA_WITH_NULL_SHA");
a("TLS_ECDHE_ECDSA_WITH_RC4_128_SHA");
a("TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA");
a("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA");
a("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA");
a("TLS_ECDH_RSA_WITH_NULL_SHA");
a("TLS_ECDH_RSA_WITH_RC4_128_SHA");
a("TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA");
a("TLS_ECDH_RSA_WITH_AES_128_CBC_SHA");
a("TLS_ECDH_RSA_WITH_AES_256_CBC_SHA");
a("TLS_ECDHE_RSA_WITH_NULL_SHA");
a("TLS_ECDHE_RSA_WITH_RC4_128_SHA");
a("TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA");
i = a("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA");
g = a("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA");
a("TLS_ECDH_anon_WITH_NULL_SHA");
a("TLS_ECDH_anon_WITH_RC4_128_SHA");
a("TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA");
a("TLS_ECDH_anon_WITH_AES_128_CBC_SHA");
a("TLS_ECDH_anon_WITH_AES_256_CBC_SHA");
a("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256");
a("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384");
a("TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256");
a("TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384");
a("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256");
a("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384");
a("TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256");
a("TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384");
h = a("TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256");
j = a("TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384");
a("TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256");
a("TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384");
l = a("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256");
m = a("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384");
a("TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256");
a("TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384");
a("TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA");
a("TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA");
f6445o = a("TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256");
k = a("TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256");
a("TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256");
a("TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256");
n = a("TLS_AES_128_GCM_SHA256");
q = a("TLS_AES_256_GCM_SHA384");
s = a("TLS_CHACHA20_POLY1305_SHA256");
r = a("TLS_AES_128_CCM_SHA256");
p = a("TLS_AES_256_CCM_8_SHA256");
}
public static jn c(String str) {
jn jnVar;
String str2;
synchronized (jn.class) {
Map<String, jn> map = w;
jnVar = map.get(str);
if (jnVar == null) {
if (str.startsWith("TLS_")) {
StringBuilder sb = new StringBuilder("SSL_");
sb.append(str.substring(4));
str2 = sb.toString();
} else if (str.startsWith("SSL_")) {
StringBuilder sb2 = new StringBuilder("TLS_");
sb2.append(str.substring(4));
str2 = sb2.toString();
} else {
str2 = str;
}
jnVar = map.get(str2);
if (jnVar == null) {
jnVar = new jn(str);
}
map.put(str, jnVar);
}
}
return jnVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static List<jn> e(String... strArr) {
ArrayList arrayList = new ArrayList(strArr.length);
for (String str : strArr) {
arrayList.add(c(str));
}
return Collections.unmodifiableList(arrayList);
}
private jn(String str) {
this.t = str;
}
private static jn a(String str) {
jn jnVar = new jn(str);
w.put(str, jnVar);
return jnVar;
}
public final String toString() {
return this.t;
}
}