public static X509CRL loadCRL(InputStream is) throws CryptoException {
  try {
    CertificateFactory cf=CertificateFactory.getInstance(X509_CERT_TYPE);
    X509CRL crl=(X509CRL)cf.generateCRL(is);
    return crl;
  }
 catch (  CertificateException ex) {
    throw new CryptoException(res.getString("NoLoadCrl.exception.message"),ex);
  }
catch (  CRLException ex) {
    throw new CryptoException(res.getString("NoLoadCrl.exception.message"),ex);
  }
 finally {
    IOUtils.closeQuietly(is);
  }
}

public static X509CRL loadCRL ( InputStream is ) throws CryptoException { try { CertificateFactory cf = CertificateFactory . getInstance ( X509_CERT_TYPE ) ; X509CRL crl = ( X509CRL ) cf . generateCRL ( is ) ; return crl ; } catch ( CertificateException ex ) { throw new CryptoException ( res . getString ( "NoLoadCrl.exception.message" ) , ex ) ; } catch ( CRLException ex ) { throw new CryptoException ( res . getString ( "NoLoadCrl.exception.message" ) , ex ) ; } finally { IOUtils . closeQuietly ( is ) ; } }
load a crl from the specified stream .
