public final class CRLVerifier extends Object
| Constructor and Description |
|---|
CRLVerifier() |
| Modifier and Type | Method and Description |
|---|---|
static X509CRL |
downloadCRL(String crlURL)
Downloads CRL from given URL.
|
static X509CRL |
downloadCRLFromLDAP(String ldapURL)
Downloads a CRL from given LDAP url, e.g.
|
static X509CRL |
downloadCRLFromWeb(String crlURL)
Downloads a CRL from given HTTP/HTTPS/FTP URL, e.g.
|
static List<String> |
getCrlDistributionPoints(X509Certificate cert)
Extracts all CRL distribution point URLs from the
"CRL Distribution Point" extension in a X.509 certificate.
|
static X509CRL |
loadCRLFromFile(String path)
Load a CRL from given file
|
static RevocationInfo |
verifyCertificateCRL(X509Certificate cert)
Extracts the CRL distribution points from the certificate (if available)
and checks the certificate revocation status against the CRLs coming from
the distribution points.
|
static RevocationInfo |
verifyCertificateCRL(X509Certificate cert,
X509CRL crl)
Verifies the revocation status of a certificate against a CRL
|
public static RevocationInfo verifyCertificateCRL(X509Certificate cert)
cert - Certificate to verifypublic static RevocationInfo verifyCertificateCRL(X509Certificate cert, X509CRL crl)
cert - The certificate to verifycrl - The CRL to use for verifyingpublic static X509CRL downloadCRL(String crlURL) throws IOException, CertificateException, NamingException, CRLException
public static X509CRL downloadCRLFromLDAP(String ldapURL) throws NamingException, CertificateException, CRLException
public static X509CRL downloadCRLFromWeb(String crlURL) throws IOException, CRLException, CertificateException
public static X509CRL loadCRLFromFile(String path) throws IOException, CRLException, CertificateException
public static List<String> getCrlDistributionPoints(X509Certificate cert) throws CertificateParsingException, IOException
Copyright © 2012–2019 Danish Maritime Authority. All rights reserved.