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

172 lines
5.8 KiB
Java

package o;
import java.util.Enumeration;
import java.util.NoSuchElementException;
import org.spongycastle.asn1.ASN1Integer;
/* renamed from: o.gqb, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15433gqb extends AbstractC15346gnv {
AbstractC15317gnH a;
public C15423gpz b;
public C15391gpH c;
public C15439gqh d;
public C15417gpt e;
public C15439gqh f;
public ASN1Integer i;
/* renamed from: o.gqb$Sts */
/* loaded from: classes6.dex */
public static class Sts extends AbstractC15346gnv {
private C15391gpH a;
public AbstractC15317gnH e;
public Sts(AbstractC15317gnH abstractC15317gnH) {
if (abstractC15317gnH.e() >= 2 && abstractC15317gnH.e() <= 3) {
this.e = abstractC15317gnH;
} else {
StringBuilder sb = new StringBuilder("Bad sequence size: ");
sb.append(abstractC15317gnH.e());
throw new IllegalArgumentException(sb.toString());
}
}
public final C15391gpH a() {
C15391gpH c15391gpH;
if (this.a == null && this.e.e() == 3) {
InterfaceC15342gnr d = this.e.d(2);
if (d instanceof C15391gpH) {
c15391gpH = (C15391gpH) d;
} else {
c15391gpH = d != null ? new C15391gpH(AbstractC15317gnH.a(d)) : null;
}
this.a = c15391gpH;
}
return this.a;
}
@Override // o.AbstractC15346gnv, o.InterfaceC15342gnr
public final AbstractC15315gnE i() {
return this.e;
}
}
/* renamed from: o.gqb$LWm */
/* loaded from: classes6.dex */
class LWm implements Enumeration {
private C15433gqb b;
private final Enumeration d;
/* JADX INFO: Access modifiers changed from: package-private */
public LWm(C15433gqb c15433gqb, Enumeration enumeration) {
this.b = c15433gqb;
this.d = enumeration;
}
@Override // java.util.Enumeration
public final boolean hasMoreElements() {
return this.d.hasMoreElements();
}
@Override // java.util.Enumeration
public final Object nextElement() {
Object nextElement = this.d.nextElement();
if (nextElement instanceof Sts) {
return (Sts) nextElement;
}
if (nextElement != null) {
return new Sts(AbstractC15317gnH.a(nextElement));
}
return null;
}
}
/* renamed from: o.gqb$HBt */
/* loaded from: classes6.dex */
class HBt implements Enumeration {
private C15433gqb c;
@Override // java.util.Enumeration
public final boolean hasMoreElements() {
return false;
}
private HBt(C15433gqb c15433gqb) {
this.c = c15433gqb;
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ HBt(C15433gqb c15433gqb, byte b) {
this(c15433gqb);
}
@Override // java.util.Enumeration
public final Object nextElement() {
throw new NoSuchElementException("Empty Enumeration");
}
}
public C15433gqb(AbstractC15317gnH abstractC15317gnH) {
C15423gpz c15423gpz;
if (abstractC15317gnH.e() < 3 || abstractC15317gnH.e() > 7) {
StringBuilder sb = new StringBuilder("Bad sequence size: ");
sb.append(abstractC15317gnH.e());
throw new IllegalArgumentException(sb.toString());
}
int i = 0;
if (abstractC15317gnH.d(0) instanceof ASN1Integer) {
this.i = ASN1Integer.e(abstractC15317gnH.d(0));
i = 1;
} else {
this.i = null;
}
InterfaceC15342gnr d = abstractC15317gnH.d(i);
if (d instanceof C15423gpz) {
c15423gpz = (C15423gpz) d;
} else {
c15423gpz = d != null ? new C15423gpz(AbstractC15317gnH.a(d)) : null;
}
this.b = c15423gpz;
this.e = C15417gpt.c(abstractC15317gnH.d(i + 1));
int i2 = i + 3;
this.f = C15439gqh.e(abstractC15317gnH.d(i + 2));
if (i2 < abstractC15317gnH.e() && ((abstractC15317gnH.d(i2) instanceof C15320gnN) || (abstractC15317gnH.d(i2) instanceof C15349gny) || (abstractC15317gnH.d(i2) instanceof C15439gqh))) {
this.d = C15439gqh.e(abstractC15317gnH.d(i2));
i2 = i + 4;
}
if (i2 < abstractC15317gnH.e() && !(abstractC15317gnH.d(i2) instanceof C15355goI)) {
this.a = AbstractC15317gnH.a(abstractC15317gnH.d(i2));
i2++;
}
if (i2 >= abstractC15317gnH.e() || !(abstractC15317gnH.d(i2) instanceof C15355goI)) {
return;
}
AbstractC15317gnH b = AbstractC15317gnH.b((AbstractC15321gnP) abstractC15317gnH.d(i2), true);
this.c = b != null ? new C15391gpH(AbstractC15317gnH.a(b)) : null;
}
@Override // o.AbstractC15346gnv, o.InterfaceC15342gnr
public final AbstractC15315gnE i() {
C15343gns c15343gns = new C15343gns();
ASN1Integer aSN1Integer = this.i;
if (aSN1Integer != null) {
c15343gns.a.addElement(aSN1Integer);
}
c15343gns.a.addElement(this.b);
c15343gns.a.addElement(this.e);
c15343gns.a.addElement(this.f);
C15439gqh c15439gqh = this.d;
if (c15439gqh != null) {
c15343gns.a.addElement(c15439gqh);
}
AbstractC15317gnH abstractC15317gnH = this.a;
if (abstractC15317gnH != null) {
c15343gns.a.addElement(abstractC15317gnH);
}
if (this.c != null) {
c15343gns.a.addElement(new C15355goI(0, this.c));
}
return new C15385goy(c15343gns);
}
}