throws IOException, CertificateException {
throws CertificateException {
    public static X509Certificate getCertfromByteArray(byte[] cert)        throws IOException, CertificateException {        log.debug(">getCertfromByteArray:");        CertificateFactory cf = CertTools.getCertificateFactory();        X509Certificate x509cert = (X509Certificate) cf.generateCertificate(new ByteArrayInputStream(                    cert));        log.debug("<getCertfromByteArray:");        return x509cert;    } // getCertfromByteArray