FromSequence() public static method

public static FromSequence ( Asn1Sequence seq ) : BerOctetString
seq Asn1Sequence
return BerOctetString
Esempio n. 1
0
        public static Asn1OctetString GetInstance(Asn1TaggedObject obj, bool isExplicit)
        {
            Asn1Object @object = obj.GetObject();

            if (isExplicit || @object is Asn1OctetString)
            {
                return(GetInstance(@object));
            }
            return(BerOctetString.FromSequence(Asn1Sequence.GetInstance(@object)));
        }
Esempio n. 2
0
        public static Asn1OctetString GetInstance(Asn1TaggedObject obj, bool isExplicit)
        {
            Asn1Object obj2 = obj.GetObject();

            if (!isExplicit && !(obj2 is Asn1OctetString))
            {
                return(BerOctetString.FromSequence(Asn1Sequence.GetInstance(obj2)));
            }
            return(GetInstance(obj2));
        }