Author: tilman
Date: Wed Aug 19 09:00:06 2026
New Revision: 1937220

Log:
PDFBOX-5660: remove outdated

Modified:
   
pdfbox/branches/3.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java

Modified: 
pdfbox/branches/3.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
==============================================================================
--- 
pdfbox/branches/3.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
       Wed Aug 19 08:30:41 2026        (r1937219)
+++ 
pdfbox/branches/3.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
       Wed Aug 19 09:00:06 2026        (r1937220)
@@ -77,7 +77,7 @@ public final class CRLVerifier
     /**
      * Extracts the CRL distribution points from the certificate (if available)
      * and checks the certificate revocation status against the CRLs coming 
from
-     * the distribution points. Supports HTTP, HTTPS, FTP and LDAP based URLs.
+     * the distribution points. Supports HTTP, HTTPS and LDAP based URLs.
      *
      * @param cert the certificate to be checked for revocation
      * @param signDate the date when the signing took place
@@ -231,14 +231,12 @@ public final class CRLVerifier
     }
 
     /**
-     * Downloads CRL from given URL. Supports http, https, ftp and ldap based 
URLs.
+     * Downloads CRL from given URL. Supports http, https and ldap based URLs.
      */
     private static X509CRL downloadCRL(String crlURL) throws IOException,
-            CertificateException, CRLException,
-            CertificateVerificationException, NamingException, 
URISyntaxException
+            CertificateVerificationException, NamingException, 
URISyntaxException, GeneralSecurityException
     {
-        if (crlURL.startsWith("http://";) || crlURL.startsWith("https://";)
-                || crlURL.startsWith("ftp://";))
+        if (crlURL.startsWith("http://";) || crlURL.startsWith("https://";))
         {
             return downloadCRLFromWeb(crlURL);
         }
@@ -288,11 +286,15 @@ public final class CRLVerifier
     }
 
     /**
-     * Downloads a CRL from given HTTP/HTTPS/FTP URL, e.g.
-     * http://crl.infonotary.com/crl/identity-ca.crl
+     * Downloads a CRL from given HTTP/HTTPS URL, e.g. 
http://crl.infonotary.com/crl/identity-ca.crl
+     * @param crlURL
+     * @return 
+     * @throws java.io.IOException
+     * @throws java.security.GeneralSecurityException
+     * @throws java.net.URISyntaxException
      */
     public static X509CRL downloadCRLFromWeb(String crlURL)
-            throws IOException, CertificateException, CRLException, 
URISyntaxException
+            throws IOException, GeneralSecurityException, URISyntaxException
     {
         try (InputStream crlStream = SigUtils.openURL(crlURL))
         {

Reply via email to