new DERBitString(contextFlags)));
}
byte[] mechanismToken = getMechanismToken();
if (mechanismToken != null) {
fields.add(new DERTaggedObject(true, 2,
new DEROctetString(mechanismToken)));
}
byte[] mechanismListMIC = getMechanismListMIC();
if (mechanismListMIC != null) {
fields.add(new DERTaggedObject(true, 3,
new DEROctetString(mechanismListMIC)));
}
der.writeObject(new DERTaggedObject(true, 0,
new DERSequence(fields)));
DERObject token = new DERUnknownTag(DERTags.CONSTRUCTED |
DERTags.APPLICATION, collector.toByteArray());