certificatestoresession.revokeAllCertByCA(admin, issuerdn, RevokedCertInfo.REVOKATION_REASON_CACOMPROMISE);   ca.setStatus(SecConst.CA_REVOKED); try{ CA cadata = ca.getCA();   certificatestoresession.revokeCertificate(admin, cadata.getCACertificate(), reason);  cadata.setRevokationReason(reason); cadata.setRevokationDate(new Date()); ca.setCA(cadata); }catch(UnsupportedEncodingException uee){ throw new EJBException(uee); }
    public void revokeCA(Admin admin, int caid, int reason)  throws CADoesntExistsException, AuthorizationDeniedException{        // check authorization                // TODO            } // revokeCA