package org.bouncycastle.asn1.x509;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class Certificate extends org.bouncycastle.asn1.ASN1Object {
    org.bouncycastle.asn1.ASN1Sequence a;
    org.bouncycastle.asn1.x509.TBSCertificate b;
    org.bouncycastle.asn1.x509.AlgorithmIdentifier c;
    org.bouncycastle.asn1.ASN1BitString d;

    private Certificate(org.bouncycastle.asn1.ASN1Sequence aSN1Sequence) {
        this.a = aSN1Sequence;
        if (aSN1Sequence.size() != 3) {
            throw new java.lang.IllegalArgumentException("sequence wrong size for a certificate");
        }
        this.b = org.bouncycastle.asn1.x509.TBSCertificate.p(aSN1Sequence.B(0));
        this.c = org.bouncycastle.asn1.x509.AlgorithmIdentifier.o(aSN1Sequence.B(1));
        this.d = org.bouncycastle.asn1.ASN1BitString.A(aSN1Sequence.B(2));
    }

    public static org.bouncycastle.asn1.x509.Certificate o(java.lang.Object obj) {
        if (obj instanceof org.bouncycastle.asn1.x509.Certificate) {
            return (org.bouncycastle.asn1.x509.Certificate) obj;
        }
        if (obj != null) {
            return new org.bouncycastle.asn1.x509.Certificate(org.bouncycastle.asn1.ASN1Sequence.z(obj));
        }
        return null;
    }

    public static org.bouncycastle.asn1.x509.Certificate p(org.bouncycastle.asn1.ASN1TaggedObject aSN1TaggedObject, boolean z) {
        return o(org.bouncycastle.asn1.ASN1Sequence.A(aSN1TaggedObject, z));
    }

    @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
    public org.bouncycastle.asn1.ASN1Primitive j() {
        return this.a;
    }

    public org.bouncycastle.asn1.x509.Time n() {
        return this.b.n();
    }

    public org.bouncycastle.asn1.x500.X500Name q() {
        return this.b.q();
    }

    public org.bouncycastle.asn1.ASN1Integer r() {
        return this.b.s();
    }

    public org.bouncycastle.asn1.ASN1BitString s() {
        return this.d;
    }

    public org.bouncycastle.asn1.x509.AlgorithmIdentifier t() {
        return this.c;
    }

    public org.bouncycastle.asn1.x509.Time u() {
        return this.b.u();
    }

    public org.bouncycastle.asn1.x500.X500Name v() {
        return this.b.v();
    }

    public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo w() {
        return this.b.w();
    }

    public org.bouncycastle.asn1.x509.TBSCertificate x() {
        return this.b;
    }

    public int y() {
        return this.b.y();
    }
}
