getLogSession().log(admin, certificate.getIssuerDN().toString().hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENCERTIFICATEMAP,"Error adding certificate mapping, certificatesn: "  + certificatesn +", tokensn: " + tokensn);
getLogSession().log(admin, caid, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENCERTIFICATEMAP,"Error adding certificate mapping, certificatesn: "  + certificatesn +", tokensn: " + tokensn);
    public void addHardTokenCertificateMapping(Admin admin, String tokensn, X509Certificate certificate){        String certificatesn = certificate.getSerialNumber().toString(16);        debug(">addHardTokenCertificateMapping(certificatesn : "+ certificatesn  +", tokensn : " + tokensn + ")");                 try {            hardtokencertificatemaphome.create(CertTools.getFingerprintAsString(certificate),tokensn);            getLogSession().log(admin, certificate.getIssuerDN().toString().hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENCERTIFICATEMAP,"Certificate mapping added, certificatesn: "  + certificatesn +", tokensn: " + tokensn + " added.");        }        catch (Exception e) {          getLogSession().log(admin, certificate.getIssuerDN().toString().hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENCERTIFICATEMAP,"Error adding certificate mapping, certificatesn: "  + certificatesn +", tokensn: " + tokensn);        }        debug("<addHardTokenCertificateMapping()");    } // addHardTokenCertificateMapping