package org.bouncycastle.asn1.x509;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class CertificateList extends org.bouncycastle.asn1.ASN1Object {
    org.bouncycastle.asn1.x509.TBSCertList a;
    org.bouncycastle.asn1.x509.AlgorithmIdentifier b;
    org.bouncycastle.asn1.ASN1BitString c;
    boolean d = false;
    int e;

    private CertificateList(org.bouncycastle.asn1.ASN1Sequence aSN1Sequence) {
        if (aSN1Sequence.size() != 3) {
            throw new java.lang.IllegalArgumentException("sequence wrong size for CertificateList");
        }
        this.a = org.bouncycastle.asn1.x509.TBSCertList.o(aSN1Sequence.B(0));
        this.b = org.bouncycastle.asn1.x509.AlgorithmIdentifier.o(aSN1Sequence.B(1));
        this.c = org.bouncycastle.asn1.ASN1BitString.A(aSN1Sequence.B(2));
    }

    public static org.bouncycastle.asn1.x509.CertificateList n(java.lang.Object obj) {
        if (obj instanceof org.bouncycastle.asn1.x509.CertificateList) {
            return (org.bouncycastle.asn1.x509.CertificateList) obj;
        }
        if (obj != null) {
            return new org.bouncycastle.asn1.x509.CertificateList(org.bouncycastle.asn1.ASN1Sequence.z(obj));
        }
        return null;
    }

    @Override // org.bouncycastle.asn1.ASN1Object
    public int hashCode() {
        if (!this.d) {
            this.e = super.hashCode();
            this.d = true;
        }
        return this.e;
    }

    @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
    public org.bouncycastle.asn1.ASN1Primitive j() {
        org.bouncycastle.asn1.ASN1EncodableVector aSN1EncodableVector = new org.bouncycastle.asn1.ASN1EncodableVector(3);
        aSN1EncodableVector.a(this.a);
        aSN1EncodableVector.a(this.b);
        aSN1EncodableVector.a(this.c);
        return new org.bouncycastle.asn1.DERSequence(aSN1EncodableVector);
    }

    public org.bouncycastle.asn1.x500.X500Name o() {
        return this.a.p();
    }

    public org.bouncycastle.asn1.x509.Time p() {
        return this.a.q();
    }

    public java.util.Enumeration q() {
        return this.a.r();
    }

    public org.bouncycastle.asn1.ASN1BitString r() {
        return this.c;
    }

    public org.bouncycastle.asn1.x509.AlgorithmIdentifier s() {
        return this.b;
    }

    public org.bouncycastle.asn1.x509.TBSCertList t() {
        return this.a;
    }

    public org.bouncycastle.asn1.x509.Time u() {
        return this.a.t();
    }

    public int v() {
        return this.a.u();
    }
}
