cat.debug("found by key! ="+ data3); cat.debug("fp="+data3.getFingerprint()); cat.debug("issuer="+data3.getIssuerDN()); cat.debug("subject="+data3.getSubjectDN()); cat.debug("cafp="+data3.getCAFingerprint());
log.debug("found by key! ="+ data3); log.debug("fp="+data3.getFingerprint()); log.debug("issuer="+data3.getIssuerDN()); log.debug("subject="+data3.getSubjectDN()); log.debug("cafp="+data3.getCAFingerprint());
    public void test05FindAgain() throws Exception {        cat.debug(">test05FindAgain()");        CertificateDataPK pk = new CertificateDataPK();        pk.fingerprint = CertTools.getFingerprintAsString(cert);        CertificateData data3 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data3);        cat.debug("found by key! ="+ data3);        cat.debug("fp="+data3.getFingerprint());        cat.debug("issuer="+data3.getIssuerDN());        cat.debug("subject="+data3.getSubjectDN());        cat.debug("cafp="+data3.getCAFingerprint());        assertNotNull("wrong CAFingerprint", data3.getCAFingerprint());        cat.debug("status="+data3.getStatus());        assertTrue("wrong status", data3.getStatus() == CertificateData.CERT_REVOKED);        cat.debug("type="+data3.getType());        assertTrue("wrong type", (data3.getType() & SecConst.USER_ENDUSER) == SecConst.USER_ENDUSER);        cat.debug("serno="+data3.getSerialNumber());        cat.debug("expiredate="+data3.getExpireDate());        cat.debug("revocationdate="+data3.getRevocationDate());        cat.debug("revocationreason="+data3.getRevocationReason());        assertTrue("wrong reason", (data3.getRevocationReason() & RevokedCertInfo.REVOKATION_REASON_KEYCOMPROMISE) == RevokedCertInfo.REVOKATION_REASON_KEYCOMPROMISE);        cat.debug("Looking for cert with DN="+cert.getSubjectDN().toString());        ICertificateStoreSessionRemote store = storehome.create();        Collection certs = store.findCertificatesBySubject(new Admin(Admin.TYPE_INTERNALUSER), cert.getSubjectDN().toString());        Iterator iter = certs.iterator();        while (iter.hasNext()) {            X509Certificate xcert = (X509Certificate)iter.next();            cat.debug(xcert.getSubjectDN().toString()+" - "+xcert.getSerialNumber().toString());            //cat.debug(certs[i].toString());        }        cat.debug("<test05FindAgain()");    }