what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzaaj.java

169 lines
5.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.util.Strings;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class zzaaj extends AbstractSafeParcelable implements zzxn<zzaaj> {
public static final Parcelable.Creator<zzaaj> CREATOR = new zzaak();
private static final String zza = "zzaaj";
private String zzb;
private String zzc;
private String zzd;
private zzaac zze;
public zzaaj() {
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
SafeParcelWriter.writeParcelable(parcel, 5, this.zze, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxn
public final /* synthetic */ zzxn zza(String str) throws zzvg {
String str2;
char c;
try {
JSONObject jSONObject = new JSONObject(str);
this.zzb = Strings.emptyToNull(jSONObject.optString("email"));
this.zzc = Strings.emptyToNull(jSONObject.optString("newEmail"));
int optInt = jSONObject.optInt("reqType");
if (optInt != 1) {
switch (optInt) {
case 4:
str2 = "VERIFY_EMAIL";
break;
case 5:
str2 = "RECOVER_EMAIL";
break;
case 6:
str2 = "EMAIL_SIGNIN";
break;
case 7:
str2 = "VERIFY_AND_CHANGE_EMAIL";
break;
case 8:
str2 = "REVERT_SECOND_FACTOR_ADDITION";
break;
default:
str2 = null;
break;
}
} else {
str2 = "PASSWORD_RESET";
}
this.zzd = str2;
if (TextUtils.isEmpty(str2)) {
String optString = jSONObject.optString("requestType");
switch (optString.hashCode()) {
case -1874510116:
if (optString.equals("REVERT_SECOND_FACTOR_ADDITION")) {
c = 5;
break;
}
c = 65535;
break;
case -1452371317:
if (optString.equals("PASSWORD_RESET")) {
c = 1;
break;
}
c = 65535;
break;
case -1341836234:
if (optString.equals("VERIFY_EMAIL")) {
c = 0;
break;
}
c = 65535;
break;
case -1099157829:
if (optString.equals("VERIFY_AND_CHANGE_EMAIL")) {
c = 3;
break;
}
c = 65535;
break;
case 870738373:
if (optString.equals("EMAIL_SIGNIN")) {
c = 2;
break;
}
c = 65535;
break;
case 970484929:
if (optString.equals("RECOVER_EMAIL")) {
c = 4;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
this.zzd = (c == 0 || c == 1 || c == 2 || c == 3 || c == 4 || c == 5) ? optString : null;
}
if (jSONObject.has("mfaInfo")) {
this.zze = zzaac.zzb(jSONObject.optJSONObject("mfaInfo"));
}
return this;
} catch (NullPointerException | JSONException e) {
throw zzabk.zza(e, zza, str);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzaaj(String str, String str2, String str3, zzaac zzaacVar) {
this.zzb = str;
this.zzc = str2;
this.zzd = str3;
this.zze = zzaacVar;
}
public final boolean zzi() {
return this.zzd != null;
}
public final boolean zzh() {
return this.zzc != null;
}
public final boolean zzg() {
return this.zze != null;
}
public final boolean zzf() {
return this.zzb != null;
}
public final String zze() {
return this.zzd;
}
public final String zzd() {
return this.zzc;
}
public final String zzc() {
return this.zzb;
}
public final zzaac zzb() {
return this.zze;
}
}