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

import java.lang.Enum;
import java.security.GeneralSecurityException;
import java.util.Map;

/* JADX INFO: loaded from: classes3.dex */
public final class zzmv<E extends Enum<E>, O> {
    private final Map<E, O> zza;
    private final Map<O, E> zzb;

    public static <E extends Enum<E>, O> zzmu<E, O> zza() {
        return new zzmu<>();
    }

    private zzmv(Map<E, O> map, Map<O, E> map2) {
        this.zza = map;
        this.zzb = map2;
    }

    public final E zza(O o6) throws GeneralSecurityException {
        E e6 = this.zzb.get(o6);
        if (e6 != null) {
            return e6;
        }
        throw new GeneralSecurityException("Unable to convert object enum: ".concat(String.valueOf(o6)));
    }

    public final O zza(E e6) throws GeneralSecurityException {
        O o6 = this.zza.get(e6);
        if (o6 != null) {
            return o6;
        }
        throw new GeneralSecurityException("Unable to convert proto enum: ".concat(String.valueOf(e6)));
    }
}
