com.spire.pdf.interactive.digitalsignatures
Class OCSPHttpService

java.lang.Object
  extended by com.spire.pdf.interactive.digitalsignatures.OCSPHttpService
All Implemented Interfaces:
IOCSPService

public class OCSPHttpService
extends java.lang.Object
implements IOCSPService

Ocsp http service implementation.


Constructor Summary
OCSPHttpService(java.lang.String url)
          Construct a new instance.
 
Method Summary
 byte[] generate(PdfCertificate checkedCertificate, PdfCertificate issuerCertificate)
          Generate OCSP response.
 

Constructor Detail

OCSPHttpService

public OCSPHttpService(java.lang.String url)
Construct a new instance.

Parameters:
url - The ocsp server url.
Method Detail

generate

public byte[] generate(PdfCertificate checkedCertificate,
                       PdfCertificate issuerCertificate)
Generate OCSP response.

Specified by:
generate in interface IOCSPService
Parameters:
checkedCertificate - Certificate to checked.
issuerCertificate - Certificate of the issuer.
Returns:
OCSP response which must conform to RFC 2560.