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

127 lines
4.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import android.text.TextUtils;
import com.google.android.gms.common.util.Strings;
import com.google.firebase.auth.zze;
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 zzaba implements zzxn {
private static final String zza = "zzaba";
private boolean zzb;
private String zzc;
private String zzd;
private long zze;
private String zzf;
private String zzg;
private String zzh;
private String zzi;
private String zzj;
private String zzk;
private boolean zzl;
private String zzm;
private String zzn;
private String zzo;
private String zzp;
private String zzq;
private String zzr;
private List zzs;
private String zzt;
@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.optBoolean("needConfirmation", false);
jSONObject.optBoolean("needEmail", false);
this.zzc = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_ID_TOKEN, null));
this.zzd = Strings.emptyToNull(jSONObject.optString("refreshToken", null));
this.zze = jSONObject.optLong("expiresIn", 0L);
this.zzf = Strings.emptyToNull(jSONObject.optString("localId", null));
this.zzg = Strings.emptyToNull(jSONObject.optString("email", null));
this.zzh = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_DISPLAY_NAME, null));
this.zzi = Strings.emptyToNull(jSONObject.optString("photoUrl", null));
this.zzj = Strings.emptyToNull(jSONObject.optString("providerId", null));
this.zzk = Strings.emptyToNull(jSONObject.optString("rawUserInfo", null));
this.zzl = jSONObject.optBoolean("isNewUser", false);
this.zzm = jSONObject.optString("oauthAccessToken", null);
this.zzn = jSONObject.optString("oauthIdToken", null);
this.zzp = Strings.emptyToNull(jSONObject.optString("errorMessage", null));
this.zzq = Strings.emptyToNull(jSONObject.optString("pendingToken", null));
this.zzr = Strings.emptyToNull(jSONObject.optString("tenantId", null));
this.zzs = zzaac.zzf(jSONObject.optJSONArray("mfaInfo"));
this.zzt = Strings.emptyToNull(jSONObject.optString("mfaPendingCredential", null));
this.zzo = Strings.emptyToNull(jSONObject.optString("oauthTokenSecret", null));
return this;
} catch (NullPointerException | JSONException e) {
throw zzabk.zza(e, zza, str);
}
}
public final zze zzc() {
if (TextUtils.isEmpty(this.zzm) && TextUtils.isEmpty(this.zzn)) {
return null;
}
return zze.zzc(this.zzj, this.zzn, this.zzm, this.zzq, this.zzo);
}
public final boolean zzm() {
return !TextUtils.isEmpty(this.zzt);
}
public final boolean zzp() {
return this.zzb || !TextUtils.isEmpty(this.zzp);
}
public final boolean zzo() {
return this.zzl;
}
public final boolean zzn() {
return this.zzb;
}
public final List zzl() {
return this.zzs;
}
public final String zzk() {
return this.zzr;
}
public final String zzj() {
return this.zzd;
}
public final String zzi() {
return this.zzk;
}
public final String zzh() {
return this.zzj;
}
public final String zzg() {
return this.zzt;
}
public final String zzf() {
return this.zzc;
}
public final String zze() {
return this.zzp;
}
public final String zzd() {
return this.zzg;
}
public final long zzb() {
return this.zze;
}
}