what-the-bank/sources/o/AbstractC16575pTO.java

98 lines
3.5 KiB
Java

package o;
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
import java.security.GeneralSecurityException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import o.NZO;
import o.RyZ;
import o.uAf;
import o.vAr;
/* renamed from: o.pTO, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public abstract class AbstractC16575pTO<KeyProtoT extends vAr> {
public final Class<KeyProtoT> a;
public final Class<?> b;
public final Map<Class<?>, AbstractC5281bqA<?, KeyProtoT>> d;
public abstract NZO.Sts b();
public abstract KeyProtoT b(jra jraVar) throws InvalidProtocolBufferException;
public abstract void b(KeyProtoT keyprotot) throws GeneralSecurityException;
public abstract String d();
@SafeVarargs
public AbstractC16575pTO(Class<KeyProtoT> cls, AbstractC5281bqA<?, KeyProtoT>... abstractC5281bqAArr) {
this.a = cls;
HashMap hashMap = new HashMap();
int length = abstractC5281bqAArr.length;
for (int i = 0; i <= 0; i++) {
AbstractC5281bqA<?, KeyProtoT> abstractC5281bqA = abstractC5281bqAArr[0];
if (hashMap.containsKey(abstractC5281bqA.e)) {
StringBuilder sb = new StringBuilder("KeyTypeManager constructed with duplicate factories for primitive ");
sb.append(abstractC5281bqA.e.getCanonicalName());
throw new IllegalArgumentException(sb.toString());
}
hashMap.put(abstractC5281bqA.e, abstractC5281bqA);
}
int length2 = abstractC5281bqAArr.length;
this.b = abstractC5281bqAArr[0].e;
this.d = Collections.unmodifiableMap(hashMap);
}
public uAf.RVV a() {
return uAf.RVV.ALGORITHM_NOT_FIPS;
}
public final <P> P c(KeyProtoT keyprotot, Class<P> cls) throws GeneralSecurityException {
AbstractC5281bqA<?, KeyProtoT> abstractC5281bqA = this.d.get(cls);
if (abstractC5281bqA == null) {
StringBuilder sb = new StringBuilder("Requested primitive class ");
sb.append(cls.getCanonicalName());
sb.append(" not supported.");
throw new IllegalArgumentException(sb.toString());
}
return (P) abstractC5281bqA.b(keyprotot);
}
/* renamed from: o.pTO$LWm */
/* loaded from: classes2.dex */
public static abstract class LWm<KeyFormatProtoT extends vAr, KeyProtoT extends vAr> {
public final Class<KeyFormatProtoT> c;
public abstract KeyProtoT a(KeyFormatProtoT keyformatprotot) throws GeneralSecurityException;
public abstract void d(KeyFormatProtoT keyformatprotot) throws GeneralSecurityException;
public abstract KeyFormatProtoT e(jra jraVar) throws InvalidProtocolBufferException;
public LWm(Class<KeyFormatProtoT> cls) {
this.c = cls;
}
/* renamed from: o.pTO$LWm$RVV */
/* loaded from: classes2.dex */
public static final class RVV<KeyFormatProtoT> {
public RyZ.IeS c;
public KeyFormatProtoT e;
public RVV(KeyFormatProtoT keyformatprotot, RyZ.IeS ieS) {
this.e = keyformatprotot;
this.c = ieS;
}
}
public Map<String, RVV<KeyFormatProtoT>> d() throws GeneralSecurityException {
return Collections.emptyMap();
}
}
public LWm<?, KeyProtoT> c() {
throw new UnsupportedOperationException("Creating keys is not supported.");
}
}