protected void caCertResponse(EjbcaWSHelper ejbhelper, Admin admin, String caname, byte[] cert, List<byte[]> cachain, String keystorepwd)
throws CADoesntExistsException, AuthorizationDeniedException, EjbcaException, ApprovalException, WaitingForApprovalException, CertPathValidatorException {
try {
CAInfo cainfo = caAdminSession.getCAInfo(admin, caname);
// create response messages, for CVC certificates we use a regular X509ResponseMessage
X509ResponseMessage msg = new X509ResponseMessage();
msg.setCertificate(CertTools.getCertfromByteArray(cert));
caAdminSession.receiveResponse(admin, cainfo.getCAId(), msg, cachain, keystorepwd);
} catch (CertificateException e) {
throw EjbcaWSHelper.getInternalException(e, null);
}
}