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

64 lines
2.1 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.internal.Preconditions;
import com.huawei.hms.support.feature.result.CommonConstant;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class zzaas implements zzxm {
private final String zza;
private final String zzb = Preconditions.checkNotEmpty("phone");
private final String zzc;
private final String zzd;
private final String zze;
private final String zzf;
private zzza zzg;
private zzaas(String str, String str2, String str3, String str4, String str5, String str6) {
this.zza = Preconditions.checkNotEmpty(str);
this.zzc = str3;
this.zzd = str4;
this.zze = str5;
this.zzf = str6;
}
public static zzaas zzb(String str, String str2, String str3, String str4, String str5) {
Preconditions.checkNotEmpty(str2);
return new zzaas(str, "phone", str2, str3, str4, str5);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxm
public final String zza() throws JSONException {
JSONObject jSONObject = new JSONObject();
jSONObject.put(CommonConstant.KEY_ID_TOKEN, this.zza);
this.zzb.hashCode();
jSONObject.put("mfaProvider", 1);
if (this.zzc != null) {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("phoneNumber", this.zzc);
if (!TextUtils.isEmpty(this.zze)) {
jSONObject2.put("recaptchaToken", this.zze);
}
if (!TextUtils.isEmpty(this.zzf)) {
jSONObject2.put("safetyNetToken", this.zzf);
}
zzza zzzaVar = this.zzg;
if (zzzaVar != null) {
jSONObject2.put("autoRetrievalInfo", zzzaVar.zza());
}
jSONObject.put("phoneEnrollmentInfo", jSONObject2);
}
return jSONObject.toString();
}
public final void zzd(zzza zzzaVar) {
this.zzg = zzzaVar;
}
public final String zzc() {
return this.zzd;
}
}