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());
der = new DEROutputStream(collector = new ByteArrayOutputStream());
der.writeObject(token);