DERObjectIdentifier mechanism =
DERObjectIdentifier.getInstance(tagged, true);
setMechanism(mechanism.getId());
break;
case 2:
ASN1OctetString mechanismToken =
ASN1OctetString.getInstance(tagged, true);
setMechanismToken(mechanismToken.getOctets());
break;
case 3:
ASN1OctetString mechanismListMIC =
ASN1OctetString.getInstance(tagged, true);
setMechanismListMIC(mechanismListMIC.getOctets());
break;
default:
throw new IOException("Malformed token field.");
}
}