Package com.gitblit.utils.X509Utils

Examples of com.gitblit.utils.X509Utils.RevocationReason


      return cert.getNotBefore();
    case Expires:
      return cert.getNotAfter();
    case Reason:
      if (ucm.getStatus(cert).equals(CertificateStatus.revoked)) {
        RevocationReason r = ucm.getRevocationReason(cert.getSerialNumber());
        return Translation.get("gb." + r.name());
      }
    }
    return null;
  }
View Full Code Here


              Translation.get("gb.revokeCertificateReason"), Translation.get("gb.revokeCertificate"),
              JOptionPane.PLAIN_MESSAGE, new ImageIcon(getClass().getResource("/rosette_32x32.png")), choices, Translation.get("gb.unspecified"));
          if (choice == null) {
            return;
          }
          RevocationReason selection = RevocationReason.unspecified;
          for (int i = 0 ; i < choices.length; i++) {
            if (choices[i].equals(choice)) {
              selection = RevocationReason.reasons[i];
              break;
            }
          }
          final RevocationReason reason = selection;
          if (!ucm.isRevoked(cert.getSerialNumber())) {
            if (ucm.certs.size() == 1) {
              // no other certificates
              ucm.expires = null;
            } else {
View Full Code Here

TOP

Related Classes of com.gitblit.utils.X509Utils.RevocationReason

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.