private RoleSyntax(Asn1Sequence seq)
{
if (seq.Count < 1 || seq.Count > 2)
{
throw new ArgumentException("Bad sequence size: " + seq.Count);
}
for (int num = 0; num != seq.Count; num++)
{
Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(seq[num]);
switch (instance.TagNo)
{
case 0:
this.roleAuthority = GeneralNames.GetInstance(instance, false);
break;
case 1:
this.roleName = GeneralName.GetInstance(instance, true);
break;
default:
throw new ArgumentException("Unknown tag in RoleSyntax");
}
}
}