what-the-bank/sources/io/grpc/okhttp/internal/TlsVersion.java

40 lines
909 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc.okhttp.internal;
/* loaded from: classes6.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;
TlsVersion(String str) {
this.javaName = str;
}
public static TlsVersion forJavaName(String str) {
if ("TLSv1.3".equals(str)) {
return TLS_1_3;
}
if ("TLSv1.2".equals(str)) {
return TLS_1_2;
}
if ("TLSv1.1".equals(str)) {
return TLS_1_1;
}
if ("TLSv1".equals(str)) {
return TLS_1_0;
}
if ("SSLv3".equals(str)) {
return SSL_3_0;
}
throw new IllegalArgumentException("Unexpected TLS version: ".concat(String.valueOf(str)));
}
public final String javaName() {
return this.javaName;
}
}