398 lines
14 KiB
Java
398 lines
14 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.gson.Gson;
|
||
|
import com.google.gson.TypeAdapter;
|
||
|
import com.google.gson.stream.JsonReader;
|
||
|
import com.google.gson.stream.JsonToken;
|
||
|
import com.google.gson.stream.JsonWriter;
|
||
|
import io.grpc.internal.GrpcUtil;
|
||
|
import java.io.IOException;
|
||
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
||
|
import org.jmrtd.cbeff.ISO781611;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class GxE extends TypeAdapter implements HJa {
|
||
|
private InterfaceC15734iCu a;
|
||
|
private Gson d;
|
||
|
private PYE e;
|
||
|
|
||
|
public GxE(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.d = gson;
|
||
|
this.a = interfaceC15734iCu;
|
||
|
this.e = pye;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
||
|
if (obj == null) {
|
||
|
jsonWriter.nullValue();
|
||
|
return;
|
||
|
}
|
||
|
Orj orj = (Orj) obj;
|
||
|
Gson gson = this.d;
|
||
|
PYE pye = this.e;
|
||
|
jsonWriter.beginObject();
|
||
|
if (orj != orj.c) {
|
||
|
pye.c(jsonWriter, 11);
|
||
|
String str = orj.c;
|
||
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
||
|
}
|
||
|
if (orj != orj.e) {
|
||
|
pye.c(jsonWriter, 374);
|
||
|
String str2 = orj.e;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
}
|
||
|
if (orj != orj.d) {
|
||
|
pye.c(jsonWriter, 337);
|
||
|
String str3 = orj.d;
|
||
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
||
|
}
|
||
|
if (orj != orj.a) {
|
||
|
pye.c(jsonWriter, 312);
|
||
|
C8484dMl c8484dMl = orj.a;
|
||
|
DTh.b(gson, C8484dMl.class, c8484dMl).write(jsonWriter, c8484dMl);
|
||
|
}
|
||
|
if (orj != orj.b) {
|
||
|
pye.c(jsonWriter, 336);
|
||
|
String str4 = orj.b;
|
||
|
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
|
||
|
}
|
||
|
pye.c(jsonWriter, 102);
|
||
|
Class cls = Double.TYPE;
|
||
|
Double valueOf = Double.valueOf(orj.f);
|
||
|
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
|
||
|
if (orj != orj.h) {
|
||
|
pye.c(jsonWriter, 265);
|
||
|
String str5 = orj.h;
|
||
|
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
|
||
|
}
|
||
|
if (orj != orj.g) {
|
||
|
pye.c(jsonWriter, 65);
|
||
|
String str6 = orj.g;
|
||
|
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
|
||
|
}
|
||
|
if (orj != orj.j) {
|
||
|
pye.c(jsonWriter, CipherSuite.TLS_RSA_PSK_WITH_AES_256_CBC_SHA);
|
||
|
String str7 = orj.j;
|
||
|
DTh.b(gson, String.class, str7).write(jsonWriter, str7);
|
||
|
}
|
||
|
if (orj != orj.i) {
|
||
|
pye.c(jsonWriter, 106);
|
||
|
String str8 = orj.i;
|
||
|
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
|
||
|
}
|
||
|
if (orj != orj.f8311o) {
|
||
|
pye.c(jsonWriter, 366);
|
||
|
String str9 = orj.f8311o;
|
||
|
DTh.b(gson, String.class, str9).write(jsonWriter, str9);
|
||
|
}
|
||
|
if (orj != orj.n) {
|
||
|
pye.c(jsonWriter, 648);
|
||
|
Integer num = orj.n;
|
||
|
DTh.b(gson, Integer.class, num).write(jsonWriter, num);
|
||
|
}
|
||
|
if (orj != orj.l) {
|
||
|
pye.c(jsonWriter, 432);
|
||
|
String str10 = orj.l;
|
||
|
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
|
||
|
}
|
||
|
pye.c(jsonWriter, 267);
|
||
|
Class cls2 = Boolean.TYPE;
|
||
|
Boolean valueOf2 = Boolean.valueOf(orj.m);
|
||
|
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
|
||
|
if (orj != orj.k) {
|
||
|
pye.c(jsonWriter, 536);
|
||
|
String str11 = orj.k;
|
||
|
DTh.b(gson, String.class, str11).write(jsonWriter, str11);
|
||
|
}
|
||
|
if (orj != orj.t) {
|
||
|
pye.c(jsonWriter, 637);
|
||
|
GCM gcm = orj.t;
|
||
|
DTh.b(gson, GCM.class, gcm).write(jsonWriter, gcm);
|
||
|
}
|
||
|
if (orj != orj.p) {
|
||
|
pye.c(jsonWriter, 498);
|
||
|
String str12 = orj.p;
|
||
|
DTh.b(gson, String.class, str12).write(jsonWriter, str12);
|
||
|
}
|
||
|
if (orj != orj.r) {
|
||
|
pye.c(jsonWriter, 612);
|
||
|
String str13 = orj.r;
|
||
|
DTh.b(gson, String.class, str13).write(jsonWriter, str13);
|
||
|
}
|
||
|
if (orj != orj.q) {
|
||
|
pye.c(jsonWriter, 682);
|
||
|
String str14 = orj.q;
|
||
|
DTh.b(gson, String.class, str14).write(jsonWriter, str14);
|
||
|
}
|
||
|
if (orj != orj.s) {
|
||
|
pye.c(jsonWriter, 449);
|
||
|
rbY rby = orj.s;
|
||
|
DTh.b(gson, rbY.class, rby).write(jsonWriter, rby);
|
||
|
}
|
||
|
if (orj != orj.y) {
|
||
|
pye.c(jsonWriter, 25);
|
||
|
String str15 = orj.y;
|
||
|
DTh.b(gson, String.class, str15).write(jsonWriter, str15);
|
||
|
}
|
||
|
if (orj != orj.w) {
|
||
|
pye.c(jsonWriter, 645);
|
||
|
String str16 = orj.w;
|
||
|
DTh.b(gson, String.class, str16).write(jsonWriter, str16);
|
||
|
}
|
||
|
if (orj != orj.u) {
|
||
|
pye.c(jsonWriter, 607);
|
||
|
String str17 = orj.u;
|
||
|
DTh.b(gson, String.class, str17).write(jsonWriter, str17);
|
||
|
}
|
||
|
if (orj != orj.x) {
|
||
|
pye.c(jsonWriter, 226);
|
||
|
String str18 = orj.x;
|
||
|
DTh.b(gson, String.class, str18).write(jsonWriter, str18);
|
||
|
}
|
||
|
if (orj != orj.v) {
|
||
|
pye.c(jsonWriter, 489);
|
||
|
String str19 = orj.v;
|
||
|
DTh.b(gson, String.class, str19).write(jsonWriter, str19);
|
||
|
}
|
||
|
if (orj != orj.C) {
|
||
|
pye.c(jsonWriter, 212);
|
||
|
String str20 = orj.C;
|
||
|
DTh.b(gson, String.class, str20).write(jsonWriter, str20);
|
||
|
}
|
||
|
orj.d(gson, jsonWriter, pye);
|
||
|
jsonWriter.endObject();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.gson.TypeAdapter
|
||
|
/* renamed from: read */
|
||
|
public final Object read2(JsonReader jsonReader) throws IOException {
|
||
|
if (jsonReader.peek() == JsonToken.NULL) {
|
||
|
jsonReader.skipValue();
|
||
|
return null;
|
||
|
}
|
||
|
Orj orj = new Orj();
|
||
|
Gson gson = this.d;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.a;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
switch (e) {
|
||
|
case 57:
|
||
|
if (!z) {
|
||
|
orj.k = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.k = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 72:
|
||
|
if (!z) {
|
||
|
orj.s = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.s = (rbY) gson.getAdapter(rbY.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 80:
|
||
|
if (!z) {
|
||
|
orj.p = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.p = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case ISO781611.BIOMETRIC_SUBTYPE_TAG /* 130 */:
|
||
|
if (!z) {
|
||
|
orj.j = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.j = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case CipherSuite.TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 /* 189 */:
|
||
|
if (!z) {
|
||
|
orj.i = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.i = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 227:
|
||
|
if (!z) {
|
||
|
break;
|
||
|
} else {
|
||
|
orj.f = ((Double) gson.getAdapter(Double.class).read2(jsonReader)).doubleValue();
|
||
|
break;
|
||
|
}
|
||
|
case 253:
|
||
|
if (!z) {
|
||
|
orj.b = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 256:
|
||
|
if (!z) {
|
||
|
orj.C = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.C = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 281:
|
||
|
if (!z) {
|
||
|
break;
|
||
|
} else {
|
||
|
orj.m = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
|
||
|
break;
|
||
|
}
|
||
|
case 309:
|
||
|
if (!z) {
|
||
|
orj.d = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.d = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 329:
|
||
|
if (!z) {
|
||
|
orj.h = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 337:
|
||
|
if (!z) {
|
||
|
orj.w = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.w = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 363:
|
||
|
if (!z) {
|
||
|
orj.e = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.e = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 371:
|
||
|
if (!z) {
|
||
|
orj.q = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.q = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 410:
|
||
|
if (!z) {
|
||
|
orj.r = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.r = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case GrpcUtil.DEFAULT_PORT_SSL /* 443 */:
|
||
|
if (!z) {
|
||
|
orj.y = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.y = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 452:
|
||
|
if (!z) {
|
||
|
orj.c = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.c = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 469:
|
||
|
if (!z) {
|
||
|
orj.f8311o = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.f8311o = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 491:
|
||
|
if (!z) {
|
||
|
orj.v = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.v = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 538:
|
||
|
if (!z) {
|
||
|
orj.g = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.g = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 539:
|
||
|
if (!z) {
|
||
|
orj.a = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.a = (C8484dMl) gson.getAdapter(C8484dMl.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 596:
|
||
|
if (!z) {
|
||
|
orj.u = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.u = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 604:
|
||
|
if (!z) {
|
||
|
orj.t = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.t = (GCM) gson.getAdapter(GCM.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 622:
|
||
|
if (!z) {
|
||
|
orj.l = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.l = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 657:
|
||
|
if (!z) {
|
||
|
orj.n = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.n = (Integer) gson.getAdapter(Integer.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
case 686:
|
||
|
if (!z) {
|
||
|
orj.x = null;
|
||
|
break;
|
||
|
} else {
|
||
|
orj.x = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
orj.a(gson, jsonReader, e);
|
||
|
continue;
|
||
|
}
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return orj;
|
||
|
}
|
||
|
}
|