code: public X509CRLEntry getRevokedCertificate(X509Certificate certificate) {
          X500Principal certIssuer = certificate.getIssuerX500Principal();
          X500Principal crlIssuer = getIssuerX500Principal();
          if (certIssuer.equals(crlIssuer) == false) {
              return null;
          }
          return getRevokedCertificate(certificate.getSerialNumber());
      }
docs: Get the CRL entry, if any, for the given certificate.
  
  <p>This method can be used to lookup CRL entries in indirect CRLs,
  that means CRLs that contain entries from issuers other than the CRL
  issuer. The default implementation will only return entries for
  certificates issued by the CRL issuer. Subclasses that wish to
  support indirect CRLs should override this method.
  
  @param certificate the certificate for which a CRL entry is to be looked
  up
  @return the entry for the given certificate, or null if no such entry
  exists in this CRL.
  @exception NullPointerException if certificate is null
  
  @since 1.5