alexandroid/decompiled/jadx/sources/okhttp3/TlsVersion.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

100 lines
4.4 KiB
Java

package okhttp3;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Metadata;
import kotlin.ReplaceWith;
import kotlin.jvm.JvmName;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import rx.Single$$ExternalSyntheticBUOutline0;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\n\b\u0086\u0001\u0018\u0000 \f2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\fB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\r\u0010\u0002\u001a\u00020\u0003H\u0007¢\u0006\u0002\b\u0006R\u0013\u0010\u0002\u001a\u00020\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0005j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000b¨\u0006\r"}, d2 = {"Lokhttp3/TlsVersion;", "", "javaName", "", "(Ljava/lang/String;ILjava/lang/String;)V", "()Ljava/lang/String;", "-deprecated_javaName", "TLS_1_3", "TLS_1_2", "TLS_1_1", "TLS_1_0", "SSL_3_0", "Companion", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes10.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");
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
private final String javaName;
TlsVersion(String str) {
this.javaName = str;
}
@JvmStatic
@NotNull
public static final TlsVersion forJavaName(@NotNull String str) {
return INSTANCE.forJavaName(str);
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "javaName", imports = {}))
@JvmName(name = "-deprecated_javaName")
@NotNull
/* renamed from: -deprecated_javaName, reason: not valid java name and from getter */
public final String getJavaName() {
return this.javaName;
}
@JvmName(name = "javaName")
@NotNull
public final String javaName() {
return this.javaName;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007¨\u0006\u0007"}, d2 = {"Lokhttp3/TlsVersion$Companion;", "", "()V", "forJavaName", "Lokhttp3/TlsVersion;", "javaName", "", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
@JvmStatic
@NotNull
public final TlsVersion forJavaName(@NotNull String javaName) {
javaName.getClass();
int hashCode = javaName.hashCode();
if (hashCode != 79201641) {
if (hashCode != 79923350) {
switch (hashCode) {
case -503070503:
if (javaName.equals("TLSv1.1")) {
return TlsVersion.TLS_1_1;
}
break;
case -503070502:
if (javaName.equals("TLSv1.2")) {
return TlsVersion.TLS_1_2;
}
break;
case -503070501:
if (javaName.equals("TLSv1.3")) {
return TlsVersion.TLS_1_3;
}
break;
}
} else if (javaName.equals("TLSv1")) {
return TlsVersion.TLS_1_0;
}
} else if (javaName.equals("SSLv3")) {
return TlsVersion.SSL_3_0;
}
Single$$ExternalSyntheticBUOutline0.m$3("Unexpected TLS version: ".concat(javaName));
return null;
}
private Companion() {
}
}
}