Пример #1
0
		public CertBag(
            Asn1Sequence seq)
        {
			if (seq.Count != 2)
				throw new ArgumentException("Wrong number of elements in sequence", "seq");

//			this.seq = seq;
            this.certID = DerObjectIdentifier.GetInstance(seq[0]);
            this.certValue = DerTaggedObject.GetInstance(seq[1]).GetObject();
        }
Пример #2
0
 private OtherName(Asn1Sequence seq)
 {
     this.typeID = DerObjectIdentifier.GetInstance(seq[0]);
     this.value  = DerTaggedObject.GetInstance(seq[1]).GetObject(); // explicitly tagged
 }