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

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