iTextSharp.text.pdf.security.CrlVerifier.GetCrl C# (CSharp) Méthode

GetCrl() public méthode

public GetCrl ( X509Certificate signCert, X509Certificate issuerCert ) : X509Crl
signCert Org.BouncyCastle.X509.X509Certificate
issuerCert Org.BouncyCastle.X509.X509Certificate
Résultat Org.BouncyCastle.X509.X509Crl
        public X509Crl GetCrl(X509Certificate signCert, X509Certificate issuerCert)
        {
            try {
                // gets the URL from the certificate
                String crlurl = CertificateUtil.GetCRLURL(signCert);
                if (crlurl == null)
                    return null;
                LOGGER.Info("Getting CRL from " + crlurl);

                X509CrlParser crlParser = new X509CrlParser();
                // Creates the CRL
                Stream url = WebRequest.Create(crlurl).GetResponse().GetResponseStream();
                return crlParser.ReadCrl(url);
            }
            catch (IOException) {
                return null;
            }
            catch (GeneralSecurityException) {
                return null;
            }
        }