Class AbstractOcspRequestor

    • Constructor Detail

      • AbstractOcspRequestor

        protected AbstractOcspRequestor()
    • Method Detail

      • send

        protected abstract byte[] send​(byte[] request,
                                       URL responderUrl,
                                       RequestOptions requestOptions)
                                throws IOException
        Sends the request to the OCSP responder.
        Parameters:
        request - Request. Must not be null.
        responderUrl - Responder URL. Must not be null.
        requestOptions - Request options. Must not be null.
        Returns:
        received response
        Throws:
        IOException - if the transmission failed.
      • ask

        public 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,
                                                       OcspRequestorException
        Description copied from interface: OcspRequestor
        Asks for the status of the given certificate.
        Specified by:
        ask in interface OcspRequestor
        Parameters:
        issuerCert - 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.
        Returns:
        the OCSP response.
        Throws:
        OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested certificate.
        OcspRequestorException - if cannot build the OCSP request
      • ask

        public 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,
                                                       OcspRequestorException
        Description copied from interface: OcspRequestor
        Asks for the status of the given certificate.
        Specified by:
        ask in interface OcspRequestor
        Parameters:
        issuerCert - 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.
        Returns:
        the OCSP response.
        Throws:
        OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested certificate.
        OcspRequestorException - if cannot build the OCSP request
      • ask

        public org.bouncycastle.cert.ocsp.OCSPResp ask​(org.xipki.security.X509Cert issuerCert,
                                                       BigInteger serialNumber,
                                                       URL responderUrl,
                                                       RequestOptions requestOptions,
                                                       org.xipki.util.ReqRespDebug debug)
                                                throws OcspResponseException,
                                                       OcspRequestorException
        Description copied from interface: OcspRequestor
        Asks for the status of the given certificate.
        Specified by:
        ask in interface OcspRequestor
        Parameters:
        issuerCert - 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.
        Returns:
        the OCSP response.
        Throws:
        OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested certificate.
        OcspRequestorException - if cannot build the OCSP request
      • ask

        public org.bouncycastle.cert.ocsp.OCSPResp ask​(org.xipki.security.X509Cert issuerCert,
                                                       BigInteger[] serialNumbers,
                                                       URL responderUrl,
                                                       RequestOptions requestOptions,
                                                       org.xipki.util.ReqRespDebug debug)
                                                throws OcspResponseException,
                                                       OcspRequestorException
        Description copied from interface: OcspRequestor
        Asks for the status of the given certificates.
        Specified by:
        ask in interface OcspRequestor
        Parameters:
        issuerCert - 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.
        Returns:
        the OCSP response.
        Throws:
        OcspResponseException - if the OCSP responder cannot be reached or the response does not match the requested certificates.
        OcspRequestorException - if cannot build the OCSP request
      • getSignerConf

        public String getSignerConf()
      • setSignerConf

        public void setSignerConf​(String signerConf)
      • getSignerCertFile

        public String getSignerCertFile()
      • setSignerCertFile

        public void setSignerCertFile​(String signerCertFile)
      • getSignerType

        public String getSignerType()
      • setSignerType

        public void setSignerType​(String signerType)
      • getSecurityFactory

        public org.xipki.security.SecurityFactory getSecurityFactory()
      • setSecurityFactory

        public void setSecurityFactory​(org.xipki.security.SecurityFactory securityFactory)