public class OcspHelper extends Object
| Constructor and Description |
|---|
OcspHelper(X509Certificate checkCertificate,
X509Certificate issuerCertificate,
String ocspUrl) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.cert.ocsp.OCSPResp |
getResponseOcsp()
Performs and verifies the OCSP-Request
|
void |
verifyRespStatus(org.bouncycastle.cert.ocsp.OCSPResp resp)
Helper method to verify response status.
|
public OcspHelper(X509Certificate checkCertificate, X509Certificate issuerCertificate, String ocspUrl)
checkCertificate - Certificate to be OCSP-CheckedissuerCertificate - Certificate of the issuerocspUrl - where to fetch for OCSPpublic org.bouncycastle.cert.ocsp.OCSPResp getResponseOcsp()
throws IOException,
org.bouncycastle.cert.ocsp.OCSPException,
RevokedCertificateException
IOExceptionorg.bouncycastle.cert.ocsp.OCSPExceptionRevokedCertificateExceptionpublic void verifyRespStatus(org.bouncycastle.cert.ocsp.OCSPResp resp)
throws org.bouncycastle.cert.ocsp.OCSPException
resp - OCSP responseorg.bouncycastle.cert.ocsp.OCSPException - if the response status is not okCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.