Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientInfo.ToAsn1Object C# (CSharp) Method

ToAsn1Object() public method

public ToAsn1Object ( ) : Asn1Object
return Org.BouncyCastle.Asn1.Asn1Object
        public override Asn1Object ToAsn1Object()
        {
            Asn1EncodableVector v = new Asn1EncodableVector(
				version, new DerTaggedObject(true, 0, originator));

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

			v.Add(keyEncryptionAlgorithm, recipientEncryptedKeys);

			return new DerSequence(v);
        }
    }