public CaCrlReasonCompleter() { List<String> enums = new LinkedList<>(); for (CrlReason reason : CaActions.CaRevoke.PERMITTED_REASONS) { enums.add(reason.getDescription()); } setTokens(enums); }
public String getEncoded() { ConfPairs pairs = new ConfPairs(); pairs.putPair("reason", reason.getDescription()); pairs.putPair("revocationTime", Long.toString(revocationTime.getTime() / 1000)); if (invalidityTime != null) { pairs.putPair("invalidityTime", Long.toString(invalidityTime.getTime() / 1000)); } return pairs.getEncoded(); }
@Override public String toString() { ConfPairs pairs = new ConfPairs(); pairs.putPair(KEY_REVOCATION_REASON, targetReason.getDescription()); pairs.putPair(KEY_UNCHANGED_SINCE, unchangedSince.toString()); return pairs.getEncoded(); }
@Override public String toString() { ConfPairs pairs = new ConfPairs(); pairs.putPair(KEY_REVOCATION_REASON, targetReason.getDescription()); pairs.putPair(KEY_UNCHANGED_SINCE, unchangedSince.toString()); return pairs.getEncoded(); }
case REMOVE_FROM_CRL: throw new OperationException(NOT_PERMITTED, "insufficient permission to revoke certificate " + "with reason " + reason.getDescription()); case UNSPECIFIED: case KEY_COMPROMISE:
event.addEventData(CaAuditConstants.NAME_reason, reason.getDescription()); caIdent.getName(), hexSerial, reason.getDescription()); caIdent.getName(), hexSerial, reason.getDescription());
String hexSerial = LogUtil.formatCsn(serialNumber); event.addEventData(CaAuditConstants.NAME_serial, hexSerial); event.addEventData(CaAuditConstants.NAME_reason, reason.getDescription()); if (invalidityTime != null) { event.addEventData(CaAuditConstants.NAME_invalidity_time, caIdent.getName(), hexSerial, reason.getDescription(), invalidityTime); + " revocationResult=REVOKED", caIdent.getName(), hexSerial, reason.getDescription(), invalidityTime);
throw new OperationException(NOT_PERMITTED, "could not unrevoke certificate revoked with reason " + currentReason.getDescription());
throw new OperationException(CERT_REVOKED, "certificate already revoked with the requested reason " + currentReason.getDescription()); } else { revInfo.setRevocationTime(currentRevInfo.getRevocationTime()); "certificate already revoked with reason " + currentReason.getDescription());
if (currentReason != CrlReason.CERTIFICATE_HOLD) { throw new OperationException(CERT_REVOKED, "certificate is revoked but not with reason " + CrlReason.CERTIFICATE_HOLD.getDescription());
} else { status = StringUtil.concatObjects("revoked, reason = ", CrlReason.forReasonCode(reason).getDescription(), ", revocationTime = ", revTime, (invTime == null ? "" : ", invalidityTime = " + invTime));
} else { status = StringUtil.concatObjects("revoked, reason = ", CrlReason.forReasonCode(reason).getDescription(), ", revocationTime = ", revTime, (invTime == null ? "" : ", invalidityTime = " + invTime));
if (revocationInfo != null) { revInfoText = StringUtil.concatObjectsCap(30, "\n\treason: ", revocationInfo.getReason().getDescription(), "\n\trevoked at ", revocationInfo.getRevocationTime());
if (revocationInfo != null) { revInfoText = StringUtil.concatObjectsCap(30, "\n\treason: ", revocationInfo.getReason().getDescription(), "\n\trevoked at ", revocationInfo.getRevocationTime());