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

67 lines
1.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import android.text.TextUtils;
import com.huawei.hms.support.feature.result.CommonConstant;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class zzzh implements zzxn {
private static final String zza = "zzzh";
private String zzb;
private String zzc;
private String zzd;
private String zze;
private boolean zzf;
private long zzg;
private List zzh;
private String zzi;
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxn
public final /* synthetic */ zzxn zza(String str) throws zzvg {
try {
JSONObject jSONObject = new JSONObject(str);
this.zzb = jSONObject.optString("localId", null);
this.zzc = jSONObject.optString("email", null);
this.zzd = jSONObject.optString(CommonConstant.KEY_ID_TOKEN, null);
this.zze = jSONObject.optString("refreshToken", null);
this.zzf = jSONObject.optBoolean("isNewUser", false);
this.zzg = jSONObject.optLong("expiresIn", 0L);
this.zzh = zzaac.zzf(jSONObject.optJSONArray("mfaInfo"));
this.zzi = jSONObject.optString("mfaPendingCredential", null);
return this;
} catch (NullPointerException | JSONException e) {
throw zzabk.zza(e, zza, str);
}
}
public final boolean zzg() {
return !TextUtils.isEmpty(this.zzi);
}
public final boolean zzh() {
return this.zzf;
}
public final List zzf() {
return this.zzh;
}
public final String zze() {
return this.zze;
}
public final String zzd() {
return this.zzi;
}
public final String zzc() {
return this.zzd;
}
public final long zzb() {
return this.zzg;
}
}