package com.google.android.gms.internal.p002firebaseauthapi;

import java.security.GeneralSecurityException;
import java.util.HashMap;
import java.util.Map;
/* compiled from: com.google.firebase:firebase-auth@@23.1.0 */
/* renamed from: com.google.android.gms.internal.firebase-auth-api.zzod  reason: invalid package */
/* loaded from: classes3.dex */
public final class zzod {
    private static final zzod zza = new zzod();
    private final Map<String, zzch> zzb = new HashMap();

    public static zzod zza() {
        return zza;
    }

    zzod() {
    }

    private final synchronized void zza(String str, zzch zzchVar) throws GeneralSecurityException {
        if (this.zzb.containsKey(str)) {
            if (this.zzb.get(str).equals(zzchVar)) {
                return;
            }
            String valueOf = String.valueOf(this.zzb.get(str));
            throw new GeneralSecurityException("Parameters object with name " + str + " already exists (" + valueOf + "), cannot insert " + String.valueOf(zzchVar));
        }
        this.zzb.put(str, zzchVar);
    }

    public final synchronized void zza(Map<String, zzch> map) throws GeneralSecurityException {
        for (Map.Entry<String, zzch> entry : map.entrySet()) {
            zza(entry.getKey(), entry.getValue());
        }
    }
}
