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

71 lines
2.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.math.BigInteger;
import org.spongycastle.asn1.ASN1Integer;
/* renamed from: o.gpy, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15422gpy extends AbstractC15346gnv {
private C15345gnu a;
public ASN1Integer e;
public C15422gpy(AbstractC15317gnH abstractC15317gnH) {
this.a = C15345gnu.d(false);
this.e = null;
if (abstractC15317gnH.e() == 0) {
this.a = null;
this.e = null;
return;
}
if (abstractC15317gnH.d(0) instanceof C15345gnu) {
this.a = C15345gnu.d(abstractC15317gnH.d(0));
} else {
this.a = null;
this.e = ASN1Integer.e(abstractC15317gnH.d(0));
}
if (abstractC15317gnH.e() > 1) {
if (this.a != null) {
this.e = ASN1Integer.e(abstractC15317gnH.d(1));
return;
}
throw new IllegalArgumentException("wrong sequence in constructor");
}
}
public final boolean a() {
C15345gnu c15345gnu = this.a;
return (c15345gnu == null || c15345gnu.e[0] == 0) ? false : true;
}
@Override // o.AbstractC15346gnv, o.InterfaceC15342gnr
public final AbstractC15315gnE i() {
C15343gns c15343gns = new C15343gns();
C15345gnu c15345gnu = this.a;
if (c15345gnu != null) {
c15343gns.a.addElement(c15345gnu);
}
ASN1Integer aSN1Integer = this.e;
if (aSN1Integer != null) {
c15343gns.a.addElement(aSN1Integer);
}
return new C15385goy(c15343gns);
}
public final String toString() {
if (this.e != null) {
StringBuilder sb = new StringBuilder("BasicConstraints: isCa(");
sb.append(a());
sb.append("), pathLenConstraint = ");
sb.append(new BigInteger(this.e.b));
return sb.toString();
}
if (this.a == null) {
return "BasicConstraints: isCa(false)";
}
StringBuilder sb2 = new StringBuilder("BasicConstraints: isCa(");
sb2.append(a());
sb2.append(")");
return sb2.toString();
}
}