throw new IOException("Malformed NegTokenInit.");
}
tokenStream = new ByteArrayInputStream(constructed.getData());
der = new DERInputStream(tokenStream);
DERObjectIdentifier spnego = (DERObjectIdentifier) der.readObject();
ASN1TaggedObject tagged = (ASN1TaggedObject) der.readObject();
ASN1Sequence sequence = ASN1Sequence.getInstance(tagged, true);
Enumeration fields = sequence.getObjects();
while (fields.hasMoreElements()) {
tagged = (ASN1TaggedObject) fields.nextElement();
switch (tagged.getTagNo()) {
case 0:
sequence = ASN1Sequence.getInstance(tagged, true);
String[] mechanisms = new String[sequence.size()];
for (int i = mechanisms.length - 1; i >= 0; i--) {
DERObjectIdentifier mechanism = (DERObjectIdentifier)