package okhttp3; import o.C14953gcr; import o.C14957gcv; /* loaded from: classes.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"); public static final Companion Companion = new Companion(null); private final String javaName; TlsVersion(String str) { this.javaName = str; } /* loaded from: classes.dex */ public static final class Companion { private Companion() { } public final TlsVersion forJavaName(String str) { C14957gcv.e(str, ""); int hashCode = str.hashCode(); if (hashCode != 79201641) { if (hashCode != 79923350) { switch (hashCode) { case -503070503: if (str.equals("TLSv1.1")) { return TlsVersion.TLS_1_1; } break; case -503070502: if (str.equals("TLSv1.2")) { return TlsVersion.TLS_1_2; } break; case -503070501: if (str.equals("TLSv1.3")) { return TlsVersion.TLS_1_3; } break; } } else if (str.equals("TLSv1")) { return TlsVersion.TLS_1_0; } } else if (str.equals("SSLv3")) { return TlsVersion.SSL_3_0; } throw new IllegalArgumentException(C14957gcv.c("Unexpected TLS version: ", (Object) str)); } public /* synthetic */ Companion(C14953gcr c14953gcr) { this(); } } public final String javaName() { return this.javaName; } /* renamed from: -deprecated_javaName, reason: not valid java name */ public final String m490deprecated_javaName() { return this.javaName; } public static final TlsVersion forJavaName(String str) { return Companion.forJavaName(str); } }