getLogSession().log(admin, (X509Certificate) cert, LogEntry.MODULE_CA, new java.util.Date(), useradmindata.getUsername(), cert, LogEntry.EVENT_ERROR_STORECERTIFICATE, "Error storing certificate request history.");
getLogSession().log(admin, cert, LogEntry.MODULE_CA, new java.util.Date(), useradmindata.getUsername(), cert, LogEntry.EVENT_ERROR_STORECERTIFICATE, "Error storing certificate request history.");
    public void addCertReqHistoryData(Admin admin, Certificate certificate, UserDataVO useradmindata){    	X509Certificate cert = (X509Certificate) certificate;        try {                        debug(">addCertReqHistData(" + cert.getSerialNumber() + ", " + cert.getIssuerDN() + ", " + useradmindata.getUsername() + ")");            CertReqHistoryDataPK pk = new CertReqHistoryDataPK();            pk.fingerprint = CertTools.getFingerprintAsString(cert);            CertReqHistoryDataLocal data1 = this.certReqHistoryHome.create(cert,useradmindata);            getLogSession().log(admin, cert, LogEntry.MODULE_CA, new java.util.Date(), useradmindata.getUsername(), (X509Certificate) cert, LogEntry.EVENT_INFO_STORECERTIFICATE, "Storing certificate request history successful.");                    } catch (Exception e) {            getLogSession().log(admin, (X509Certificate) cert, LogEntry.MODULE_CA, new java.util.Date(), useradmindata.getUsername(), cert, LogEntry.EVENT_ERROR_STORECERTIFICATE, "Error storing certificate request history.");            throw new EJBException(e);        }        debug("<addCertReqHistData()");    	    }