public class OCSPVerifier extends java.lang.Object implements RevocationVerifier
| Constructor and Description |
|---|
OCSPVerifier(OCSPCache cache) |
| Modifier and Type | Method and Description |
|---|---|
RevocationStatus |
checkRevocationStatus(java.security.cert.X509Certificate peerCert,
java.security.cert.X509Certificate issuerCert)
Gets the revocation status (Good, Revoked or Unknown) of the given peer certificate.
|
protected org.bouncycastle.cert.ocsp.OCSPResp |
getOCSPResponce(java.lang.String serviceUrl,
org.bouncycastle.cert.ocsp.OCSPReq request)
Gets an ASN.1 encoded OCSP response (as defined in RFC 2560) from the given service URL.
|
public OCSPVerifier(OCSPCache cache)
public RevocationStatus checkRevocationStatus(java.security.cert.X509Certificate peerCert, java.security.cert.X509Certificate issuerCert) throws CertificateVerificationException
checkRevocationStatus in interface RevocationVerifierpeerCert - The certificate we want to check if revoked.issuerCert - Needed to create OCSP request.CertificateVerificationExceptionprotected org.bouncycastle.cert.ocsp.OCSPResp getOCSPResponce(java.lang.String serviceUrl,
org.bouncycastle.cert.ocsp.OCSPReq request)
throws CertificateVerificationException
serviceUrl - URL of the OCSP endpoint.request - an OCSP request object.CertificateVerificationExceptionCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.