Author: tilman
Date: Wed Aug 19 09:00:09 2026
New Revision: 1937221
Log:
PDFBOX-5660: remove outdated
Modified:
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
Modified:
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
==============================================================================
---
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
Wed Aug 19 09:00:06 2026 (r1937220)
+++
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CRLVerifier.java
Wed Aug 19 09:00:09 2026 (r1937221)
@@ -74,7 +74,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
@@ -229,14 +229,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
+ CertificateVerificationException, NamingException,
GeneralSecurityException
{
- if (crlURL.startsWith("http://") || crlURL.startsWith("https://")
- || crlURL.startsWith("ftp://"))
+ if (crlURL.startsWith("http://") || crlURL.startsWith("https://"))
{
return downloadCRLFromWeb(crlURL);
}
@@ -286,11 +284,13 @@ 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
*/
- public static X509CRL downloadCRLFromWeb(String crlURL)
- throws IOException, CertificateException, CRLException
+ public static X509CRL downloadCRLFromWeb(String crlURL) throws
IOException, GeneralSecurityException
{
InputStream crlStream = SigUtils.openURL(crlURL);
try