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

45 lines
1.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import com.google.android.gms.common.internal.Preconditions;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class zzzk implements zzxm {
private final String zza = Preconditions.checkNotEmpty("phone");
private final String zzb;
private final String zzc;
private final String zzd;
zzzk(String str, String str2, String str3, String str4, String str5, String str6) {
this.zzb = Preconditions.checkNotEmpty(str2);
this.zzc = str3;
this.zzd = str4;
}
public static zzzk zzb(String str, String str2, String str3) {
Preconditions.checkNotEmpty(str3);
Preconditions.checkNotEmpty(str2);
return new zzzk("phone", str, str2, str3, null, null);
}
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxm
public final String zza() throws JSONException {
JSONObject jSONObject = new JSONObject();
this.zza.hashCode();
jSONObject.put("mfaProvider", 1);
jSONObject.put("mfaPendingCredential", this.zzb);
JSONObject jSONObject2 = new JSONObject();
String str = this.zzc;
if (str != null) {
jSONObject2.put("sessionInfo", str);
}
String str2 = this.zzd;
if (str2 != null) {
jSONObject2.put("code", str2);
}
jSONObject.put("phoneVerificationInfo", jSONObject2);
return jSONObject.toString();
}
}