package o; import java.math.BigInteger; import java.security.cert.CRL; import java.security.cert.CRLSelector; import java.security.cert.X509CRL; import java.security.cert.X509CRLSelector; import org.spongycastle.asn1.ASN1Integer; /* renamed from: o.gqw, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15454gqw implements InterfaceC15467grM { private final boolean a; private final boolean b; public final CRLSelector c; private final boolean d; private final byte[] e; private final BigInteger g; @Override // o.InterfaceC15467grM public final Object clone() { return this; } public /* synthetic */ C15454gqw(HBt hBt, byte b) { this(hBt); } /* renamed from: o.gqw$HBt */ /* loaded from: classes6.dex */ public static class HBt { final CRLSelector b; boolean e = false; public boolean a = false; public BigInteger f = null; public byte[] d = null; public boolean c = false; public HBt(CRLSelector cRLSelector) { this.b = (CRLSelector) cRLSelector.clone(); } } private C15454gqw(HBt hBt) { this.c = hBt.b; this.b = hBt.e; this.a = hBt.a; this.g = hBt.f; this.e = hBt.d; this.d = hBt.c; } public final boolean e(CRL crl) { if (!(crl instanceof X509CRL)) { return this.c.match(crl); } X509CRL x509crl = (X509CRL) crl; try { byte[] extensionValue = x509crl.getExtensionValue(C15394gpK.h.d); ASN1Integer e = extensionValue != null ? ASN1Integer.e(gnD.b((Object) extensionValue).b()) : null; if (this.b && e == null) { return false; } if (this.a && e != null) { return false; } if (e != null && this.g != null && new BigInteger(1, e.b).compareTo(this.g) == 1) { return false; } if (this.d) { byte[] extensionValue2 = x509crl.getExtensionValue(C15394gpK.f9146o.d); byte[] bArr = this.e; if (bArr == null) { if (extensionValue2 != null) { return false; } } else if (!grK.b(extensionValue2, bArr)) { return false; } } return this.c.match(crl); } catch (Exception unused) { return false; } } /* renamed from: o.gqw$Sts */ /* loaded from: classes6.dex */ public static class Sts extends X509CRLSelector { private final C15454gqw a; public Sts(C15454gqw c15454gqw) { this.a = c15454gqw; if (c15454gqw.c instanceof X509CRLSelector) { X509CRLSelector x509CRLSelector = (X509CRLSelector) c15454gqw.c; setCertificateChecking(x509CRLSelector.getCertificateChecking()); setDateAndTime(x509CRLSelector.getDateAndTime()); setIssuers(x509CRLSelector.getIssuers()); setMinCRLNumber(x509CRLSelector.getMinCRL()); setMaxCRLNumber(x509CRLSelector.getMaxCRL()); } } @Override // java.security.cert.X509CRLSelector, java.security.cert.CRLSelector public final boolean match(CRL crl) { C15454gqw c15454gqw = this.a; if (c15454gqw == null) { return crl != null; } return c15454gqw.e(crl); } } }