Author: tilman
Date: Wed Aug 19 09:00:13 2026
New Revision: 1937222
Log:
PDFBOX-5660: remove outdated
Modified:
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
Modified:
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
==============================================================================
---
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
Wed Aug 19 09:00:09 2026 (r1937221)
+++
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
Wed Aug 19 09:00:13 2026 (r1937222)
@@ -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
@@ -233,14 +233,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);
}
@@ -290,11 +288,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))
{