DEROutputStream der = new DEROutputStream(collector);
ASN1EncodableVector fields = new ASN1EncodableVector();
int result = getResult();
if (result != UNSPECIFIED_RESULT) {
fields.add(new DERTaggedObject(true, 0,
new DEREnumerated(result)));
}
String mechanism = getMechanism();
if (mechanism != null) {
fields.add(new DERTaggedObject(true, 1,
new DERObjectIdentifier(mechanism)));