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

66 lines
2.1 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
import android.text.TextUtils;
import com.google.android.gms.common.util.Strings;
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 zzabf implements zzxn {
private static final String zza = "zzabf";
private String zzb;
private String zzc;
private String zzd;
private String zze;
private String zzf;
private String zzg;
private long zzh;
private List zzi;
private String zzj;
@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 = Strings.emptyToNull(jSONObject.optString("localId", null));
this.zzc = Strings.emptyToNull(jSONObject.optString("email", null));
this.zzd = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_DISPLAY_NAME, null));
this.zze = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_ID_TOKEN, null));
this.zzf = Strings.emptyToNull(jSONObject.optString("photoUrl", null));
this.zzg = Strings.emptyToNull(jSONObject.optString("refreshToken", null));
this.zzh = jSONObject.optLong("expiresIn", 0L);
this.zzi = zzaac.zzf(jSONObject.optJSONArray("mfaInfo"));
this.zzj = jSONObject.optString("mfaPendingCredential", null);
return this;
} catch (NullPointerException | JSONException e) {
throw zzabk.zza(e, zza, str);
}
}
public final boolean zzg() {
return !TextUtils.isEmpty(this.zzj);
}
public final List zzf() {
return this.zzi;
}
public final String zze() {
return this.zzg;
}
public final String zzd() {
return this.zzj;
}
public final String zzc() {
return this.zze;
}
public final long zzb() {
return this.zzh;
}
}