68 lines
1.9 KiB
Java
68 lines
1.9 KiB
Java
|
package com.google.android.gms.internal.p002firebaseauthapi;
|
||
|
|
||
|
import java.security.GeneralSecurityException;
|
||
|
import java.util.Collections;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.Map;
|
||
|
import java.util.Set;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class zzgc {
|
||
|
private final Class zza;
|
||
|
private final Map zzb;
|
||
|
private final Class zzc;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
@SafeVarargs
|
||
|
public zzgc(Class cls, zzgw... zzgwVarArr) {
|
||
|
this.zza = cls;
|
||
|
HashMap hashMap = new HashMap();
|
||
|
for (int i = 0; i <= 0; i++) {
|
||
|
zzgw zzgwVar = zzgwVarArr[i];
|
||
|
if (!hashMap.containsKey(zzgwVar.zzb())) {
|
||
|
hashMap.put(zzgwVar.zzb(), zzgwVar);
|
||
|
} else {
|
||
|
throw new IllegalArgumentException("KeyTypeManager constructed with duplicate factories for primitive ".concat(String.valueOf(zzgwVar.zzb().getCanonicalName())));
|
||
|
}
|
||
|
}
|
||
|
this.zzc = zzgwVarArr[0].zzb();
|
||
|
this.zzb = Collections.unmodifiableMap(hashMap);
|
||
|
}
|
||
|
|
||
|
public zzgb zza() {
|
||
|
throw new UnsupportedOperationException("Creating keys is not supported.");
|
||
|
}
|
||
|
|
||
|
public abstract zznr zzb();
|
||
|
|
||
|
public abstract zzaek zzc(zzacc zzaccVar) throws zzadn;
|
||
|
|
||
|
public abstract String zzd();
|
||
|
|
||
|
public abstract void zze(zzaek zzaekVar) throws GeneralSecurityException;
|
||
|
|
||
|
public int zzf() {
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
public final Object zzl(zzaek zzaekVar, Class cls) throws GeneralSecurityException {
|
||
|
zzgw zzgwVar = (zzgw) this.zzb.get(cls);
|
||
|
if (zzgwVar == null) {
|
||
|
throw new IllegalArgumentException("Requested primitive class " + cls.getCanonicalName() + " not supported.");
|
||
|
}
|
||
|
return zzgwVar.zza(zzaekVar);
|
||
|
}
|
||
|
|
||
|
public final Set zzm() {
|
||
|
return this.zzb.keySet();
|
||
|
}
|
||
|
|
||
|
public final Class zzk() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
|
||
|
public final Class zzj() {
|
||
|
return this.zzc;
|
||
|
}
|
||
|
}
|