433         if (certs.length < 2) {
   436             String message = 
"OCSP requires a responder certificate. OCSP cannot be used to verify the revocation status of self-signed certificates.";
   437             throw new GeneralSecurityException(message);
   440         for (X509Certificate cert : certs) {
   441             logger.debugf(
"Certificate: %s", cert.getSubjectDN().getName());
   447             throw new GeneralSecurityException(
"Unable to check client revocation status using OCSP");
   450         if (rs.getRevocationStatus() == OCSPUtils.RevocationStatus.UNKNOWN) {
   451             throw new GeneralSecurityException(
"Unable to determine certificate's revocation status.");
   453         else if (rs.getRevocationStatus() == OCSPUtils.RevocationStatus.REVOKED) {
   455             StringBuilder sb = 
new StringBuilder();
   456             sb.append(
"Certificate's been revoked.");
   458             sb.append(rs.getRevocationReason().toString());
   460             sb.append(String.format(
"Revoked on: %s",rs.getRevocationTime().toString()));
   462             throw new GeneralSecurityException(sb.toString());
 static final ServicesLogger logger
Definition: CertificateValidator.java:63
 
OCSPChecker ocspChecker
Definition: CertificateValidator.java:331
 
abstract OCSPUtils.OCSPRevocationStatus check(X509Certificate cert, X509Certificate issuerCertificate)