iText 7 7.1.11 API
iText.Signatures.OcspClientBouncyCastle Class Reference

OcspClient implementation using BouncyCastle. More...

Inheritance diagram for iText.Signatures.OcspClientBouncyCastle:
iText.Signatures.IOcspClient

Public Member Functions

  OcspClientBouncyCastle (OCSPVerifier verifier)
  Create OcspClient More...
 
virtual BasicOcspResp  GetBasicOCSPResp (X509Certificate checkCert, X509Certificate rootCert, String url)
  Gets OCSP response. More...
 
virtual byte[]  GetEncoded (X509Certificate checkCert, X509Certificate rootCert, String url)
  Gets an encoded byte array with OCSP validation. More...
 

Detailed Description

OcspClient implementation using BouncyCastle.

Paulo Soarees

Constructor & Destructor Documentation

◆ OcspClientBouncyCastle()

iText.Signatures.OcspClientBouncyCastle.OcspClientBouncyCastle ( OCSPVerifier  verifier )
inline

Create OcspClient

Parameters
verifier will be used for response verification.
See also
OCSPVerifier

Member Function Documentation

◆ GetBasicOCSPResp()

virtual BasicOcspResp iText.Signatures.OcspClientBouncyCastle.GetBasicOCSPResp ( X509Certificate  checkCert,
X509Certificate  rootCert,
String  url 
)
inlinevirtual

Gets OCSP response.

Gets OCSP response. If OCSPVerifier was set, the response will be checked.

Parameters
checkCert to certificate to check
rootCert the parent certificate
url to get the verification

◆ GetEncoded()

virtual byte [] iText.Signatures.OcspClientBouncyCastle.GetEncoded ( X509Certificate  checkCert,
X509Certificate  rootCert,
String  url 
)
inlinevirtual

Gets an encoded byte array with OCSP validation.

Gets an encoded byte array with OCSP validation. The method should not throw an exception.

Parameters
checkCert to certificate to check
rootCert the parent certificate
url to get the verification. It it's null it will be taken from the check cert or from other implementation specific source
Returns
a byte array with the validation or null if the validation could not be obtained

Implements iText.Signatures.IOcspClient.