public AttributeTable( Asn1EncodableVector v) { this.attributes = Platform.CreateHashtable(v.Count); foreach (Asn1Encodable o in v) { Attribute a = Attribute.GetInstance(o); AddAttribute(a); } }
public AttributeTable( Asn1Set s) { this.attributes = Platform.CreateHashtable(s.Count); for (int i = 0; i != s.Count; i++) { Attribute a = Attribute.GetInstance(s[i]); AddAttribute(a); } }
public Asn1EncodableVector ToAsn1EncodableVector() { Asn1EncodableVector v = new Asn1EncodableVector(); foreach (object obj in attributes.Values) { if (obj is IList) { foreach (object el in (IList)obj) { v.Add(Attribute.GetInstance(el)); } } else { v.Add(Attribute.GetInstance(obj)); } } return(v); }