package org.bouncycastle.asn1.ocsp;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class RevokedInfo extends org.bouncycastle.asn1.ASN1Object {
    private org.bouncycastle.asn1.ASN1GeneralizedTime a;
    private org.bouncycastle.asn1.x509.CRLReason b;

    private RevokedInfo(org.bouncycastle.asn1.ASN1Sequence aSN1Sequence) {
        this.a = org.bouncycastle.asn1.ASN1GeneralizedTime.C(aSN1Sequence.B(0));
        if (aSN1Sequence.size() > 1) {
            this.b = org.bouncycastle.asn1.x509.CRLReason.n(org.bouncycastle.asn1.ASN1Enumerated.z((org.bouncycastle.asn1.ASN1TaggedObject) aSN1Sequence.B(1), true));
        }
    }

    public static org.bouncycastle.asn1.ocsp.RevokedInfo n(java.lang.Object obj) {
        if (obj instanceof org.bouncycastle.asn1.ocsp.RevokedInfo) {
            return (org.bouncycastle.asn1.ocsp.RevokedInfo) obj;
        }
        if (obj != null) {
            return new org.bouncycastle.asn1.ocsp.RevokedInfo(org.bouncycastle.asn1.ASN1Sequence.z(obj));
        }
        return null;
    }

    public static org.bouncycastle.asn1.ocsp.RevokedInfo o(org.bouncycastle.asn1.ASN1TaggedObject aSN1TaggedObject, boolean z) {
        return n(org.bouncycastle.asn1.ASN1Sequence.A(aSN1TaggedObject, z));
    }

    @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(2);
        aSN1EncodableVector.a(this.a);
        org.bouncycastle.asn1.x509.CRLReason cRLReason = this.b;
        if (cRLReason != null) {
            aSN1EncodableVector.a(new org.bouncycastle.asn1.DERTaggedObject(true, 0, cRLReason));
        }
        return new org.bouncycastle.asn1.DERSequence(aSN1EncodableVector);
    }

    public org.bouncycastle.asn1.x509.CRLReason p() {
        return this.b;
    }

    public org.bouncycastle.asn1.ASN1GeneralizedTime q() {
        return this.a;
    }
}
