Package org.xipki.ocsp.client
Interface OcspRequestor
-
- All Known Implementing Classes:
AbstractOcspRequestor,HttpOcspRequestor
public interface OcspRequestorOCSP requestor interface.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.bouncycastle.cert.ocsp.OCSPRespask(org.xipki.security.X509Cert issuerCert, BigInteger[] serialNumbers, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug)Asks for the status of the given certificates.org.bouncycastle.cert.ocsp.OCSPRespask(org.xipki.security.X509Cert issuerCert, BigInteger serialNumber, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug)Asks for the status of the given certificate.org.bouncycastle.cert.ocsp.OCSPRespask(org.xipki.security.X509Cert issuerCert, org.xipki.security.X509Cert[] certs, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug)Asks for the status of the given certificate.org.bouncycastle.cert.ocsp.OCSPRespask(org.xipki.security.X509Cert issuerCert, org.xipki.security.X509Cert cert, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug)Asks for the status of the given certificate.
-
-
-
Method Detail
-
ask
org.bouncycastle.cert.ocsp.OCSPResp ask(org.xipki.security.X509Cert issuerCert, org.xipki.security.X509Cert cert, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorExceptionAsks for the status of the given certificate.- Parameters:
issuerCert- Issuer certificate. Must not benull.cert- Target certificate. Must not benull.responderUrl- Responder URL. Must not benull.requestOptions- Request options. Must not benull.debug- Request/response debug control. Could benull.- Returns:
- the OCSP response.
- Throws:
OcspRequestorException- if cannot build the OCSP requestOcspResponseException- if the OCSP responder cannot be reached or the response does not match the requested certificate.
-
ask
org.bouncycastle.cert.ocsp.OCSPResp ask(org.xipki.security.X509Cert issuerCert, org.xipki.security.X509Cert[] certs, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorExceptionAsks for the status of the given certificate.- Parameters:
issuerCert- Issuer certificate. Must not benull.certs- Target certificates. Must not benull.responderUrl- Responder URL. Must not benull.requestOptions- Request options. Must not benull.debug- Request/response debug control. Could benull.- Returns:
- the OCSP response.
- Throws:
OcspRequestorException- if cannot build the OCSP requestOcspResponseException- if the OCSP responder cannot be reached or the response does not match the requested certificate.
-
ask
org.bouncycastle.cert.ocsp.OCSPResp ask(org.xipki.security.X509Cert issuerCert, BigInteger serialNumber, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorExceptionAsks for the status of the given certificate.- Parameters:
issuerCert- Issuer certificate. Must not benull.serialNumber- Serial number of the target certificate. Must not benull.responderUrl- Responder URL. Must not benull.requestOptions- Request options. Must not benull.debug- Request/response debug control. Could benull.- Returns:
- the OCSP response.
- Throws:
OcspRequestorException- if cannot build the OCSP requestOcspResponseException- if the OCSP responder cannot be reached or the response does not match the requested certificate.
-
ask
org.bouncycastle.cert.ocsp.OCSPResp ask(org.xipki.security.X509Cert issuerCert, BigInteger[] serialNumbers, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorExceptionAsks for the status of the given certificates.- Parameters:
issuerCert- Issuer certificate. Must not benull.serialNumbers- Serial numbers of the target certificates. Must not benull.responderUrl- Responder URL. Must not benull.requestOptions- Request options. Must not benull.debug- Request/response debug control. Could benull.- Returns:
- the OCSP response.
- Throws:
OcspRequestorException- if cannot build the OCSP requestOcspResponseException- if the OCSP responder cannot be reached or the response does not match the requested certificates.
-
-