AddOptional() private static method

private static AddOptional ( Asn1EncodableVector v, int tagNo, Asn1Encodable obj ) : void
v Asn1EncodableVector
tagNo int
obj Asn1Encodable
return void
示例#1
0
        public override Asn1Object ToAsn1Object()
        {
            Asn1EncodableVector v = new Asn1EncodableVector(new Asn1Encodable[]
            {
                this.pvno,
                this.sender,
                this.recipient
            });

            PkiHeader.AddOptional(v, 0, this.messageTime);
            PkiHeader.AddOptional(v, 1, this.protectionAlg);
            PkiHeader.AddOptional(v, 2, this.senderKID);
            PkiHeader.AddOptional(v, 3, this.recipKID);
            PkiHeader.AddOptional(v, 4, this.transactionID);
            PkiHeader.AddOptional(v, 5, this.senderNonce);
            PkiHeader.AddOptional(v, 6, this.recipNonce);
            PkiHeader.AddOptional(v, 7, this.freeText);
            PkiHeader.AddOptional(v, 8, this.generalInfo);
            return(new DerSequence(v));
        }