Ejemplo n.º 1
0
        /**
         * return a OtherRecipientInfo object from the given object.
         *
         * @param obj the object we want converted.
         * @exception ArgumentException if the object cannot be converted.
         */
        public static OtherRecipientInfo GetInstance(
            object obj)
        {
            if (obj == null)
            {
                return(null);
            }
            OtherRecipientInfo existing = obj as OtherRecipientInfo;

            if (existing != null)
            {
                return(existing);
            }
            return(new OtherRecipientInfo(Asn1Sequence.GetInstance(obj)));
        }
Ejemplo n.º 2
0
 public RecipientInfo(
     OtherRecipientInfo info)
 {
     this.info = new DerTaggedObject(false, 4, info);
 }