@License(copyright="Copyright (c) 2012-2014 Andrea Funto\', Svetlin Nakov") public class CRL extends Object
| Constructor and Description |
|---|
CRL() |
| Modifier and Type | Method and Description |
|---|---|
static X509CRL |
fromLDAP(String ldapURL)
Downloads a CRL from given LDAP url, e.g.
|
static X509CRL |
fromURL(String url)
Downloads the CRL from the given URL.
|
static X509CRL |
fromWeb(String crlURL)
Downloads a CRL from given HTTP/HTTPS/FTP URL, e.g.
|
static List<String> |
getCrlDistributionPoints(X509Certificate certificate)
Extracts all CRL distribution point URLs from the "CRL Distribution Point"
extension in a X.509 certificate.
|
static void |
verifyCertificateCRLs(X509Certificate certificate)
Extracts the CRL distribution points from the certificate (if available)
and checks the certificate revocation status against the CRLs coming from
the distribution points.
|
public static X509CRL fromURL(String url) throws IOException, CertificateException, CRLException, CertificateVerificationException, NamingException
public static X509CRL fromLDAP(String ldapURL) throws CertificateException, NamingException, CRLException, CertificateVerificationException, IOException
public static X509CRL fromWeb(String crlURL) throws MalformedURLException, IOException, CertificateException, CRLException
public static void verifyCertificateCRLs(X509Certificate certificate) throws CertificateVerificationException
certificate - the certificate to be checked for revocation.CertificateVerificationException - if the certificate is revoked.public static List<String> getCrlDistributionPoints(X509Certificate certificate) throws CertificateParsingException, IOException
Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.