ToAsn1Object() public méthode

public ToAsn1Object ( ) : Asn1Object
Résultat Asn1Object
Exemple #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));
        }
        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));
        }