package org.bouncycastle.asn1.bc;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class ObjectStoreData extends org.bouncycastle.asn1.ASN1Object {
    private final java.math.BigInteger a;
    private final org.bouncycastle.asn1.x509.AlgorithmIdentifier b;
    private final org.bouncycastle.asn1.ASN1GeneralizedTime c;
    private final org.bouncycastle.asn1.ASN1GeneralizedTime d;
    private final org.bouncycastle.asn1.bc.ObjectDataSequence e;
    private final java.lang.String f;

    private ObjectStoreData(org.bouncycastle.asn1.ASN1Sequence aSN1Sequence) {
        this.a = org.bouncycastle.asn1.ASN1Integer.y(aSN1Sequence.B(0)).B();
        this.b = org.bouncycastle.asn1.x509.AlgorithmIdentifier.o(aSN1Sequence.B(1));
        this.c = org.bouncycastle.asn1.ASN1GeneralizedTime.C(aSN1Sequence.B(2));
        this.d = org.bouncycastle.asn1.ASN1GeneralizedTime.C(aSN1Sequence.B(3));
        this.e = org.bouncycastle.asn1.bc.ObjectDataSequence.n(aSN1Sequence.B(4));
        this.f = aSN1Sequence.size() == 6 ? org.bouncycastle.asn1.ASN1UTF8String.y(aSN1Sequence.B(5)).k() : null;
    }

    public static org.bouncycastle.asn1.bc.ObjectStoreData o(java.lang.Object obj) {
        if (obj instanceof org.bouncycastle.asn1.bc.ObjectStoreData) {
            return (org.bouncycastle.asn1.bc.ObjectStoreData) obj;
        }
        if (obj != null) {
            return new org.bouncycastle.asn1.bc.ObjectStoreData(org.bouncycastle.asn1.ASN1Sequence.z(obj));
        }
        return null;
    }

    @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(6);
        aSN1EncodableVector.a(new org.bouncycastle.asn1.ASN1Integer(this.a));
        aSN1EncodableVector.a(this.b);
        aSN1EncodableVector.a(this.c);
        aSN1EncodableVector.a(this.d);
        aSN1EncodableVector.a(this.e);
        if (this.f != null) {
            aSN1EncodableVector.a(new org.bouncycastle.asn1.DERUTF8String(this.f));
        }
        return new org.bouncycastle.asn1.DERSequence(aSN1EncodableVector);
    }

    public org.bouncycastle.asn1.ASN1GeneralizedTime n() {
        return this.c;
    }

    public org.bouncycastle.asn1.x509.AlgorithmIdentifier p() {
        return this.b;
    }

    public org.bouncycastle.asn1.ASN1GeneralizedTime q() {
        return this.d;
    }

    public org.bouncycastle.asn1.bc.ObjectDataSequence r() {
        return this.e;
    }

    public ObjectStoreData(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, java.util.Date date, java.util.Date date2, org.bouncycastle.asn1.bc.ObjectDataSequence objectDataSequence, java.lang.String str) {
        this.a = java.math.BigInteger.valueOf(1L);
        this.b = algorithmIdentifier;
        this.c = new org.bouncycastle.asn1.DERGeneralizedTime(date);
        this.d = new org.bouncycastle.asn1.DERGeneralizedTime(date2);
        this.e = objectDataSequence;
        this.f = str;
    }
}
