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

51 lines
1.1 KiB
Java

package com.facetec.sdk;
import java.io.IOException;
/* loaded from: classes.dex */
public enum kd {
HTTP_1_0("http/1.0"),
HTTP_1_1("http/1.1"),
SPDY_3("spdy/3.1"),
HTTP_2("h2"),
H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
QUIC("quic");
private final String h;
kd(String str) {
this.h = str;
}
public static kd c(String str) throws IOException {
kd kdVar = HTTP_1_0;
if (str.equals(kdVar.h)) {
return kdVar;
}
kd kdVar2 = HTTP_1_1;
if (str.equals(kdVar2.h)) {
return kdVar2;
}
kd kdVar3 = H2_PRIOR_KNOWLEDGE;
if (str.equals(kdVar3.h)) {
return kdVar3;
}
kd kdVar4 = HTTP_2;
if (str.equals(kdVar4.h)) {
return kdVar4;
}
if (str.equals(SPDY_3.h)) {
return SPDY_3;
}
if (str.equals(QUIC.h)) {
return QUIC;
}
throw new IOException("Unexpected protocol: ".concat(String.valueOf(str)));
}
@Override // java.lang.Enum
public final String toString() {
return this.h;
}
}