m_log.debug("Did not find matching CA-cert for:\n" + "      Name hash : '" + Hex.encode(certId.getIssuerNameHash()) + "'\n" + "      Key hash  : '" + Hex.encode(certId.getIssuerKeyHash()) + "'\n");
if (m_log.isDebugEnabled()) { m_log.debug("Did not find matching CA-cert for:\n" + "      Name hash : '" + new String(Hex.encode(certId.getIssuerNameHash())) + "'\n" + "      Key hash  : '" + new String(Hex.encode(certId.getIssuerKeyHash())) + "'\n"); }
    protected X509Certificate findCAByHash(CertificateID certId, Collection certs) throws OCSPException {        if (null == certId) {            throw new IllegalArgumentException();        }        if (null == certs || certs.isEmpty()) {            m_log.info("The passed certificate collection is empty.");            return null;        }        Iterator iter = certs.iterator();        while (iter.hasNext()) {            X509Certificate cacert = (X509Certificate) iter.next();            CertificateID issuerId = new CertificateID(certId.getHashAlgOID(), cacert, cacert.getSerialNumber());            if (m_log.isDebugEnabled()) {                m_log.debug("Comparing the following certificate hashes:\n"                        + " Hash algorithm : '" + certId.getHashAlgOID() + "'\n"                        + " CA certificate hashes\n"                        + "      Name hash : '" + Hex.encode(issuerId.getIssuerNameHash()) + "'\n"                        + "      Key hash  : '" + Hex.encode(issuerId.getIssuerKeyHash()) + "'\n"                        + " OCSP certificate hashes\n"                        + "      Name hash : '" + Hex.encode(certId.getIssuerNameHash()) + "'\n"                        + "      Key hash  : '" + Hex.encode(certId.getIssuerKeyHash()) + "'\n");            }            if ((issuerId.toASN1Object().getIssuerNameHash().equals(certId.toASN1Object().getIssuerNameHash()))                    && (issuerId.toASN1Object().getIssuerKeyHash().equals(certId.toASN1Object().getIssuerKeyHash()))) {                m_log.debug("Found matching CA-cert with:\n"                        + "      Name hash : '" + Hex.encode(issuerId.getIssuerNameHash()) + "'\n"                        + "      Key hash  : '" + Hex.encode(issuerId.getIssuerKeyHash()) + "'\n");                return cacert;            }        }        m_log.debug("Did not find matching CA-cert for:\n"                + "      Name hash : '" + Hex.encode(certId.getIssuerNameHash()) + "'\n"                + "      Key hash  : '" + Hex.encode(certId.getIssuerKeyHash()) + "'\n");        return null;    }