cat.debug("found by key! ="+ data2); cat.debug("fp="+data2.getFingerprint()); cat.debug("issuer="+data2.getIssuerDN()); cat.debug("subject="+data2.getSubjectDN()); cat.debug("cafp="+data2.getCAFingerprint()); cat.debug("status="+data2.getStatus()); cat.debug("type="+data2.getType()); cat.debug("serno="+data2.getSerialNumber()); cat.debug("expiredate="+data2.getExpireDate()); cat.debug("revocationdate="+data2.getRevocationDate()); cat.debug("revocationreason="+data2.getRevocationReason());
log.debug("found by key! ="+ data2); log.debug("fp="+data2.getFingerprint()); log.debug("issuer="+data2.getIssuerDN()); log.debug("subject="+data2.getSubjectDN()); log.debug("cafp="+data2.getCAFingerprint()); log.debug("status="+data2.getStatus()); log.debug("type="+data2.getType()); log.debug("serno="+data2.getSerialNumber()); log.debug("expiredate="+data2.getExpireDate()); log.debug("revocationdate="+data2.getRevocationDate()); log.debug("revocationreason="+data2.getRevocationReason());
    public void test02FindAndChange() throws Exception {        cat.debug(">test02FindAndChange()");        CertificateDataPK pk = new CertificateDataPK();        pk.fingerprint = CertTools.getFingerprintAsString(cert);        CertificateData data2 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data2);        cat.debug("found by key! ="+ data2);        cat.debug("fp="+data2.getFingerprint());        cat.debug("issuer="+data2.getIssuerDN());        cat.debug("subject="+data2.getSubjectDN());        cat.debug("cafp="+data2.getCAFingerprint());        cat.debug("status="+data2.getStatus());        cat.debug("type="+data2.getType());        cat.debug("serno="+data2.getSerialNumber());        cat.debug("expiredate="+data2.getExpireDate());        cat.debug("revocationdate="+data2.getRevocationDate());        cat.debug("revocationreason="+data2.getRevocationReason());        data2.setCAFingerprint("12345");        data2.setStatus(CertificateData.CERT_REVOKED);        data2.setType(SecConst.USER_ENDUSER);        data2.setRevocationDate(new Date());        data2.setRevocationReason(RevokedCertInfo.REVOKATION_REASON_KEYCOMPROMISE);        cat.debug("Changed it");       cat.debug("<test02FindAndChange()");    }