public CertWithRevocationInfoWrapper(CertWithRevocationInfo info) { this.cert = new CertWithDbIdWrapper(info.getCert()); this.revInfo = info.getRevInfo(); this.certprofile = info.getCertprofile(); }
public CertWithRevocationInfo toCertWithRevocationInfo() throws CertificateException { CertWithRevocationInfo ret = new CertWithRevocationInfo(); ret.setCert(cert.toCertWithDbId()); ret.setCertprofile(certprofile); ret.setRevInfo(revInfo); return ret; }
CertRevocationInfo currentRevInfo = certWithRevInfo.getRevInfo(); if (currentRevInfo != null) { CrlReason currentReason = currentRevInfo.getReason(); setLong(ps, idx++, invTimeSeconds); ps.setInt(idx++, revInfo.getReason().getCode()); ps.setLong(idx++, certWithRevInfo.getCert().getCertId().longValue()); // certId publishToDeltaCrlCache(ca, certWithRevInfo.getCert().getCert().getSerialNumber()); certWithRevInfo.setRevInfo(revInfo); return certWithRevInfo;
if (oldCert.isRevoked()) { certResponses.add( buildErrorCertResponse(certReqId, PKIFailureInfo.certRevoked, certprofileName = oldCert.getCertprofile(); subject = oldCert.getCert().getSubjectAsX500Name(); publicKey = oldCert.getCert().getCertHolder().getSubjectPublicKeyInfo(); Extensions oldExtensions = oldCert.getCert().getCertHolder().getExtensions(); ASN1ObjectIdentifier[] oldOids = oldExtensions.getExtensionOIDs(); for (ASN1ObjectIdentifier oid : oldOids) {
CertRevocationInfo currentRevInfo = certWithRevInfo.getRevInfo(); if (currentRevInfo == null) { throw new OperationException(CERT_UNREVOKED, "certificate is not revoked"); ps.setNull(idx++, Types.INTEGER); ps.setNull(idx++, Types.INTEGER); ps.setLong(idx++, certWithRevInfo.getCert().getCertId().longValue()); // certId publishToDeltaCrlCache(ca, certWithRevInfo.getCert().getCert().getSerialNumber()); return certWithRevInfo.getCert();
@Override protected Object execute0() throws Exception { CertWithRevocationInfo certInfo = caManager.getCert(caName, toBigInt(serialNumberS)); if (certInfo == null) { System.out.println("certificate unknown"); return null; } saveVerbose("certificate saved to file", outputFile, encodeCert(certInfo.getCert().getEncodedCert(), outform)); return null; }
CertRevocationInfo currentRevInfo = certWithRevInfo.getRevInfo(); if (currentRevInfo == null) { throw new OperationException(CERT_UNREVOKED, "certificate is not revoked"); ps.setLong(idx++, System.currentTimeMillis() / 1000); ps.setInt(idx++, reason.getCode()); ps.setLong(idx++, certWithRevInfo.getCert().getCertId().longValue()); // certId publishToDeltaCrlCache(ca, certWithRevInfo.getCert().getCert().getSerialNumber());
CertWithDbId certToRemove = certWithRevInfo.getCert(); for (IdentifiedCertPublisher publisher : publishers()) { boolean singleSuccessful;
@Override protected Object execute0() throws Exception { CertWithRevocationInfo certInfo = caManager.getCert(caName, getSerialNumber()); if (certInfo == null) { System.out.println("certificate unknown"); return null; } String msg = StringUtil.concat("certificate profile: ", certInfo.getCertprofile(), "\nstatus: ", (certInfo.getRevInfo() == null ? "good" : "revoked with " + certInfo.getRevInfo())); println(msg); if (outputFile != null) { saveVerbose("saved certificate to file", outputFile, encodeCert(certInfo.getCert().getEncodedCert(), outform)); } return null; }
CertWithRevocationInfo ret = new CertWithRevocationInfo(); ret.setCertprofile(profileName); ret.setCert(certWithMeta); ret.setRevInfo(revInfo); return ret;
certDbId = ((CertWithRevocationInfo) returnedObj).getCert().getCertId();
boolean successful; try { successful = publisher.certificateRevoked(caCert, revokedCert.getCert(), revokedCert.getCertprofile(), revokedCert.getRevInfo()); } catch (RuntimeException ex) { successful = false; Long certId = revokedCert.getCert().getCertId(); try { certstore.addToPublishQueue(publisher.getIdent(), certId.longValue(), caIdent);
boolean successful; try { successful = publisher.certificateRevoked(caCert, revokedCert.getCert(), revokedCert.getCertprofile(), revokedCert.getRevInfo()); } catch (RuntimeException ex) { successful = false; Long certId = revokedCert.getCert().getCertId(); try { certstore.addToPublishQueue(publisher.getIdent(), certId.longValue(), caIdent);