- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
51 lines
1.2 KiB
Java
51 lines
1.2 KiB
Java
package okhttp3;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public enum TlsVersion {
|
|
TLS_1_3("TLSv1.3"),
|
|
TLS_1_2("TLSv1.2"),
|
|
TLS_1_1("TLSv1.1"),
|
|
TLS_1_0("TLSv1"),
|
|
SSL_3_0("SSLv3");
|
|
|
|
final String javaName;
|
|
|
|
public String javaName() {
|
|
return this.javaName;
|
|
}
|
|
|
|
TlsVersion(String str) {
|
|
this.javaName = str;
|
|
}
|
|
|
|
public static TlsVersion forJavaName(String str) {
|
|
str.hashCode();
|
|
switch (str) {
|
|
case "TLSv1.1":
|
|
return TLS_1_1;
|
|
case "TLSv1.2":
|
|
return TLS_1_2;
|
|
case "TLSv1.3":
|
|
return TLS_1_3;
|
|
case "SSLv3":
|
|
return SSL_3_0;
|
|
case "TLSv1":
|
|
return TLS_1_0;
|
|
default:
|
|
throw new IllegalArgumentException("Unexpected TLS version: " + str);
|
|
}
|
|
}
|
|
|
|
public static List<TlsVersion> forJavaNames(String... strArr) {
|
|
ArrayList arrayList = new ArrayList(strArr.length);
|
|
for (String str : strArr) {
|
|
arrayList.add(forJavaName(str));
|
|
}
|
|
return Collections.unmodifiableList(arrayList);
|
|
}
|
|
}
|