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(); }
private OtherName(Asn1Sequence seq) { this.typeID = DerObjectIdentifier.GetInstance(seq[0]); this.value = DerTaggedObject.GetInstance(seq[1]).GetObject(); // explicitly tagged }