Beispiel #1
0
        protected internal Asn1Sequence(Asn1EncodableVector elementVector)
        {
            if (null == elementVector)
            {
                throw new ArgumentNullException("elementVector");
            }

            this.elements = elementVector.TakeElements();
        }
        private void Parse()
        {
            lock (this)
            {
                if (null != encoded)
                {
                    Asn1EncodableVector v = new Asn1EncodableVector();
                    Asn1InputStream     e = new LazyAsn1InputStream(encoded);

                    Asn1Object o;
                    while ((o = e.ReadObject()) != null)
                    {
                        v.Add(o);
                    }

                    this.elements = v.TakeElements();
                    this.encoded  = null;
                }
            }
        }