if (numOfApprovalsRequired > 0){
KeyRecoveryApprovalRequest ar = new KeyRecoveryApprovalRequest(certificate,username,checkNewest, admin,null,numOfApprovalsRequired,caid,endEntityProfileId);
if (ApprovalExecutorUtil.requireApproval(ar, NONAPPROVABLECLASSNAMES_KEYRECOVERY)){
approvalSession.addApprovalRequest(admin, ar, gc);
String msg = intres.getLocalizedMessage("keyrecovery.addedforapproval");
throw new WaitingForApprovalException(msg, ar.generateApprovalId());
}
}
}
@Override