client.log(admin, issuerDN.hashCode(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_DATABASE, "Error in database, more than one certificate has the same Issuer : " + issuerDN + " and serialnumber " + serno.toString(16) + ".");
adapter.log(admin, issuerDN.hashCode(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_DATABASE, "Error in database, more than one certificate has the same Issuer : " + issuerDN + " and serialnumber " + serno.toString(16) + ".");
    static public RevokedCertInfo isRevoked(Admin admin, String issuerDN, BigInteger serno,                                            CertificateDataLocalHome certHome, Client client) {        if (client.getLogger().isDebugEnabled()) {            client.debug(">isRevoked(), dn:" + issuerDN + ", serno=" + serno);        }        // First make a DN in our well-known format        String dn = CertTools.stringToBCDNString(issuerDN);        try {            Collection coll = certHome.findByIssuerDNSerialNumber(dn, serno.toString());            if (coll != null) {                if (coll.size() > 1)                    client.log(admin, issuerDN.hashCode(), LogEntry.MODULE_CA, new java.util.Date(),                               null, null, LogEntry.EVENT_ERROR_DATABASE,                               "Error in database, more than one certificate has the same Issuer : " +                               issuerDN + " and serialnumber " + serno.toString(16) + ".");                Iterator iter = coll.iterator();                if (iter.hasNext()) {                    RevokedCertInfo revinfo = null;                    CertificateDataLocal data = (CertificateDataLocal) iter.next();                    revinfo = new RevokedCertInfo(serno, new Date(data.getRevocationDate()), data.getRevocationReason());                    // Make sure we have it as NOT revoked if it isn't                    if (data.getStatus() != CertificateDataBean.CERT_REVOKED) {                        revinfo.setReason(RevokedCertInfo.NOT_REVOKED);                    }                    client.debug("<isRevoked() returned " + ((data.getStatus() == CertificateDataBean.CERT_REVOKED) ? "yes" : "no"));                    return revinfo;                }            }        } catch (Exception e) {            throw new EJBException(e);        }        return null;    } //isRevoked