Class CRLVerifier
java.lang.Object
org.apache.synapse.transport.certificatevalidation.crl.CRLVerifier
- All Implemented Interfaces:
RevocationVerifier
This is used to verify a certificate is revoked or not by using the Certificate Revocation List published
by the CA.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckRevocationStatus(X509Certificate peerCert, X509Certificate issuerCert) Checks revocation status (Good, Revoked) of the peer certificate.protected X509CRLdownloadCRLFromWeb(String crlURL) Downloads CRL from the crlUrl.
-
Constructor Details
-
CRLVerifier
-
-
Method Details
-
checkRevocationStatus
public RevocationStatus checkRevocationStatus(X509Certificate peerCert, X509Certificate issuerCert) throws CertificateVerificationException Checks revocation status (Good, Revoked) of the peer certificate. IssuerCertificate can be used to check if the CRL URL has the Issuers Domain name. But this is not implemented at the moment.- Specified by:
checkRevocationStatusin interfaceRevocationVerifier- Parameters:
peerCert- peer certificateissuerCert- issuer certificate of the peer. not used currently.- Returns:
- revocation status of the peer certificate.
- Throws:
CertificateVerificationException
-
downloadCRLFromWeb
protected X509CRL downloadCRLFromWeb(String crlURL) throws IOException, CertificateVerificationException Downloads CRL from the crlUrl. Does not support HTTPS
-