String msg = intres.getLocalizedMessage("caadmin.catokenexternal", Integer.valueOf(caid));
log.info(msg);
return;
}
int numOfApprovalsRequired = getNumOfApprovalRequired(admin, CAInfo.REQ_APPROVAL_ACTIVATECATOKEN, cainfo.getCAId(), cainfo.getCertificateProfileId());
ActivateCATokenApprovalRequest ar = new ActivateCATokenApprovalRequest(cainfo.getName(), authorizationcode, admin, numOfApprovalsRequired, caid,
ApprovalDataVO.ANY_ENDENTITYPROFILE);
if (ApprovalExecutorUtil.requireApproval(ar, NONAPPROVABLECLASSNAMES_ACTIVATECATOKEN)) {
approvalSession.addApprovalRequest(admin, ar, gc);
String msg = intres.getLocalizedMessage("ra.approvalcaactivation");
throw new WaitingForApprovalException(msg);