ToAsn1Object() public method

public ToAsn1Object ( ) : Asn1Object
return Asn1Object
        public override Asn1Object ToAsn1Object()
        {
            Asn1EncodableVector v = new Asn1EncodableVector();

            v.AddOptionalTagged(true, 0, crlVals);
            v.AddOptionalTagged(true, 1, ocspVals);

            if (otherRevVals != null)
            {
                v.Add(new DerTaggedObject(true, 2, otherRevVals.ToAsn1Object()));
            }

            return(new DerSequence(v));
        }
Esempio n. 2
0
        public override Asn1Object ToAsn1Object()
        {
            Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector();

            if (crlVals != null)
            {
                asn1EncodableVector.Add(new DerTaggedObject(explicitly: true, 0, crlVals));
            }
            if (ocspVals != null)
            {
                asn1EncodableVector.Add(new DerTaggedObject(explicitly: true, 1, ocspVals));
            }
            if (otherRevVals != null)
            {
                asn1EncodableVector.Add(new DerTaggedObject(explicitly: true, 2, otherRevVals.ToAsn1Object()));
            }
            return(new DerSequence(asn1EncodableVector));
        }