Inheritance: Asn1Encodable
Example #1
0
        public static OtherRecipientInfo GetInstance(object obj)
        {
            if (obj == null)
            {
                return(null);
            }
            OtherRecipientInfo otherRecipientInfo = obj as OtherRecipientInfo;

            if (otherRecipientInfo != null)
            {
                return(otherRecipientInfo);
            }
            return(new OtherRecipientInfo(Asn1Sequence.GetInstance(obj)));
        }
Example #2
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)));
        }
        /**
         * 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);
            }

// Disable warning since using GetInstance would result in an infinite loop
#pragma warning disable 618
            return(new OtherRecipientInfo(Asn1Sequence.GetInstance(obj)));

#pragma warning restore 618
        }
Example #4
0
 public RecipientInfo(
     OtherRecipientInfo info)
 {
     this.info = new DerTaggedObject(false, 4, info);
 }
Example #5
0
 public RecipientInfo(
     OtherRecipientInfo info)
 {
     this.info = new DerTaggedObject(false, 4, info);
 }
 public static OtherRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
 {
     return(OtherRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly)));
 }