/** * Constructor from Asn1Sequence. * * The sequence is of type SubjectDirectoryAttributes: * * <pre> * SubjectDirectoryAttributes ::= Attributes * Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute * Attribute ::= SEQUENCE * { * type AttributeType * values SET OF AttributeValue * } * * AttributeType ::= OBJECT IDENTIFIER * AttributeValue ::= ANY DEFINED BY AttributeType * </pre> * * @param seq * The ASN.1 sequence. */ private SubjectDirectoryAttributes( Asn1Sequence seq) { this.attributes = Platform.CreateArrayList(); foreach (object o in seq) { Asn1Sequence s = Asn1Sequence.GetInstance(o); attributes.Add(AttributeX509.GetInstance(s)); } }
public AttributeTable( Asn1Set s) { this.attributes = Platform.CreateHashtable(s.Count); for (int i = 0; i != s.Count; i++) { AttributeX509 a = AttributeX509.GetInstance(s[i]); attributes.Add(a.AttrType, a); } }
public AttributeTable( Asn1EncodableVector v) { this.attributes = Platform.CreateHashtable(v.Count); for (int i = 0; i != v.Count; i++) { AttributeX509 a = AttributeX509.GetInstance(v[i]); attributes.Add(a.AttrType, a); } }