package com.google.android.gms.internal.p002firebaseauthapi; import android.util.Log; import java.text.ParseException; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes.dex */ public final class zzaer extends zzael { private static final String zza = "zzaer"; private String zzb; private String zzc; private int zzd; private String zze; private int zzf; private long zzg; @Override // com.google.android.gms.internal.p002firebaseauthapi.zzael, com.google.android.gms.internal.p002firebaseauthapi.zzabd public final /* bridge */ /* synthetic */ zzabd zza(String str) { zzg(str); return this; } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzael /* renamed from: zzb */ public final /* bridge */ /* synthetic */ zzael zza(String str) { zzg(str); return this; } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzael public final String zzc() { return this.zzb; } public final int zzd() { return this.zzf; } public final int zze() { return this.zzd; } public final long zzf() { return this.zzg; } public final zzaer zzg(String str) { try { JSONObject optJSONObject = new JSONObject(str).optJSONObject("totpSessionInfo"); if (optJSONObject != null) { this.zzc = zzac.zza(optJSONObject.optString("sharedSecretKey")); this.zzd = optJSONObject.optInt("verificationCodeLength"); this.zze = zzac.zza(optJSONObject.optString("hashingAlgorithm")); this.zzf = optJSONObject.optInt("periodSec"); this.zzb = zzac.zza(optJSONObject.optString("sessionInfo")); String optString = optJSONObject.optString("finalizeEnrollmentTime"); try { zzajm zzb = zzakh.zzb(optString); zzakh.zza(zzb); this.zzg = zzb.zzb(); } catch (ParseException unused) { Log.e(zza, "Failed to parse timestamp: " + optString); } } return this; } catch (NullPointerException | JSONException e10) { throw zzafg.zza(e10, zza, str); } } public final String zzh() { return this.zze; } public final String zzi() { return this.zzc; } }