{
ASN1Object o = (ASN1Object) e.nextElement();
if (o instanceof ASN1TaggedObject)
{
DERTaggedObject tagged = (DERTaggedObject) o;
switch (tagged.getTagNo())
{
case 0:
tsa = GeneralName.getInstance(tagged, true);
break;
case 1:
extensions = Extensions.getInstance(tagged, false);
break;
default:
throw new IllegalArgumentException("Unknown tag value " + tagged.getTagNo());
}
}
else if (o instanceof ASN1Sequence || o instanceof Accuracy)
{
accuracy = Accuracy.getInstance(o);