public abstract class AbstractOcspRequestor extends Object implements OcspRequestor
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOcspRequestor() |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.cert.ocsp.OCSPResp |
ask(X509Certificate issuerCert,
BigInteger[] serialNumbers,
URL responderUrl,
RequestOptions requestOptions,
org.xipki.util.ReqRespDebug debug)
Asks for the status of the given certificates.
|
org.bouncycastle.cert.ocsp.OCSPResp |
ask(X509Certificate issuerCert,
BigInteger serialNumber,
URL responderUrl,
RequestOptions requestOptions,
org.xipki.util.ReqRespDebug debug)
Asks for the status of the given certificate.
|
org.bouncycastle.cert.ocsp.OCSPResp |
ask(X509Certificate issuerCert,
X509Certificate[] certs,
URL responderUrl,
RequestOptions requestOptions,
org.xipki.util.ReqRespDebug debug)
Asks for the status of the given certificate.
|
org.bouncycastle.cert.ocsp.OCSPResp |
ask(X509Certificate issuerCert,
X509Certificate cert,
URL responderUrl,
RequestOptions requestOptions,
org.xipki.util.ReqRespDebug debug)
Asks for the status of the given certificate.
|
org.xipki.security.SecurityFactory |
getSecurityFactory() |
String |
getSignerCertFile() |
String |
getSignerConf() |
String |
getSignerType() |
protected abstract byte[] |
send(byte[] request,
URL responderUrl,
RequestOptions requestOptions)
Sends the request to the OCSP responder.
|
void |
setSecurityFactory(org.xipki.security.SecurityFactory securityFactory) |
void |
setSignerCertFile(String signerCertFile) |
void |
setSignerConf(String signerConf) |
void |
setSignerType(String signerType) |
protected abstract byte[] send(byte[] request,
URL responderUrl,
RequestOptions requestOptions)
throws IOException
request - Request. Must not be null.responderUrl - Responder URL. Must not be null.requestOptions - Request options. Must not be null.IOException - if the transmission failed.public org.bouncycastle.cert.ocsp.OCSPResp ask(X509Certificate issuerCert, X509Certificate cert, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorException
OcspRequestorask in interface OcspRequestorissuerCert - Issuer certificate. Must not be null.cert - Target certificate. Must not be null.responderUrl - Responder URL. Must not be null.requestOptions - Request options. Must not be null.debug - Request/response debug control. Could be null.OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested
certificate.OcspRequestorException - if cannot build the OCSP requestpublic org.bouncycastle.cert.ocsp.OCSPResp ask(X509Certificate issuerCert, X509Certificate[] certs, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorException
OcspRequestorask in interface OcspRequestorissuerCert - Issuer certificate. Must not be null.certs - Target certificates. Must not be null.responderUrl - Responder URL. Must not be null.requestOptions - Request options. Must not be null.debug - Request/response debug control. Could be null.OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested
certificate.OcspRequestorException - if cannot build the OCSP requestpublic org.bouncycastle.cert.ocsp.OCSPResp ask(X509Certificate issuerCert, BigInteger serialNumber, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorException
OcspRequestorask in interface OcspRequestorissuerCert - Issuer certificate. Must not be null.serialNumber - Serial number of the target certificate. Must not be null.responderUrl - Responder URL. Must not be null.requestOptions - Request options. Must not be null.debug - Request/response debug control. Could be null.OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested
certificate.OcspRequestorException - if cannot build the OCSP requestpublic org.bouncycastle.cert.ocsp.OCSPResp ask(X509Certificate issuerCert, BigInteger[] serialNumbers, URL responderUrl, RequestOptions requestOptions, org.xipki.util.ReqRespDebug debug) throws OcspResponseException, OcspRequestorException
OcspRequestorask in interface OcspRequestorissuerCert - Issuer certificate. Must not be null.serialNumbers - Serial numbers of the target certificates. Must not be null.responderUrl - Responder URL. Must not be null.requestOptions - Request options. Must not be null.debug - Request/response debug control. Could be null.OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested
certificates.OcspRequestorException - if cannot build the OCSP requestpublic String getSignerConf()
public void setSignerConf(String signerConf)
public String getSignerCertFile()
public void setSignerCertFile(String signerCertFile)
public String getSignerType()
public void setSignerType(String signerType)
public org.xipki.security.SecurityFactory getSecurityFactory()
public void setSecurityFactory(org.xipki.security.SecurityFactory securityFactory)
Copyright © 2019. All rights reserved.