ToAsn1Object() public method

public ToAsn1Object ( ) : Asn1Object
return Asn1Object
Ejemplo n.º 1
0
        public override Asn1Object ToAsn1Object()
        {
            Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector();

            if (crlids != null)
            {
                asn1EncodableVector.Add(new DerTaggedObject(explicitly: true, 0, crlids.ToAsn1Object()));
            }
            if (ocspids != null)
            {
                asn1EncodableVector.Add(new DerTaggedObject(explicitly: true, 1, ocspids.ToAsn1Object()));
            }
            if (otherRev != null)
            {
                asn1EncodableVector.Add(new DerTaggedObject(explicitly: true, 2, otherRev.ToAsn1Object()));
            }
            return(new DerSequence(asn1EncodableVector));
        }
Ejemplo n.º 2
0
        public override Asn1Object ToAsn1Object()
        {
            Asn1EncodableVector v = new Asn1EncodableVector();

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

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

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

            return(new DerSequence(v));
        }