| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkRevocation(X509CRL
certificate revocation list crl, X509Certificate certificate to be checked cert, Date date the certificate was used for signing signDate, String URL for log message or exception text crlDistributionPointsURL)Check whether the certificate was revoked at signing time. |
| private static X509CRL | |
| private static X509CRL | downloadCRLFromLDAP(String ldapURL)
Downloads a CRL from given LDAP url, e.g. ldap://ldap.infonotary.com/dc=identity-ca,dc=infonotary,dc=com |
| public static X509CRL | downloadCRLFromWeb(String crlURL)
Downloads a CRL from given HTTP/HTTPS/FTP URL, e.g. http://crl.infonotary.com/crl/identity-ca.crl |
| public static List | Returns: List of CRL distribution point URLs.Extracts all CRL distribution point URLs from the "CRL Distribution Point" extension in a X.509 certificate. |
| public static void | verifyCertificateCRLs(X509Certificate
the certificate to be checked for revocation cert, Date the date when the signing took place signDate, Set<X509Certificate> set of trusted root CA certificates that will be
used as "trust anchors" and intermediate CA certificates that will be
used as part of the certification chain. additionalCerts)Extracts the CRL distribution points from the certificate (if available) and checks the certificate revocation status against the CRLs coming from the distribution points. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| CRLVerifier | back to summary |
|---|---|
| private CRLVerifier() | |
| checkRevocation | back to summary |
|---|---|
| public static void checkRevocation(X509CRL crl, X509Certificate cert, Date signDate, String crlDistributionPointsURL) throws RevokedCertificateException Check whether the certificate was revoked at signing time.
| |
| downloadCRL | back to summary |
|---|---|
| private static X509CRL downloadCRL(String crlURL) throws IOException, CertificateException, CRLException, CertificateVerificationException, NamingException, URISyntaxException Downloads CRL from given URL. Supports http, https, ftp and ldap based URLs. | |
| downloadCRLFromLDAP | back to summary |
|---|---|
| private static X509CRL downloadCRLFromLDAP(String ldapURL) throws CertificateException, NamingException, CRLException, CertificateVerificationException Downloads a CRL from given LDAP url, e.g. ldap://ldap.infonotary.com/dc=identity-ca,dc=infonotary,dc=com | |
| downloadCRLFromWeb | back to summary |
|---|---|
| public static X509CRL downloadCRLFromWeb(String crlURL) throws IOException, CertificateException, CRLException, URISyntaxException Downloads a CRL from given HTTP/HTTPS/FTP URL, e.g. http://crl.infonotary.com/crl/identity-ca.crl | |
| getCrlDistributionPoints | back to summary |
|---|---|
| public static List Extracts all CRL distribution point URLs from the "CRL Distribution Point" extension in a X.509 certificate. If CRL distribution point extension is unavailable, returns an empty list. | |
| verifyCertificateCRLs | back to summary |
|---|---|
| public static void verifyCertificateCRLs(X509Certificate cert, Date signDate, Set<X509Certificate> additionalCerts) throws CertificateVerificationException, RevokedCertificateException 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.
| |