Table of Contents

Interface IOcspClient

Namespace
iText.Signatures
Assembly
itext.sign.dll

Interface for the Online Certificate Status Protocol (OCSP) Client.

public interface IOcspClient

Methods

GetEncoded(IX509Certificate, IX509Certificate, string)

Fetch a DER-encoded BasicOCSPResponse from an OCSP responder.

byte[] GetEncoded(IX509Certificate checkCert, IX509Certificate issuerCert, string url)

Parameters

checkCert IX509Certificate

Certificate to check.

issuerCert IX509Certificate

The parent certificate.

url string

The URL of the OCSP responder endpoint. If null, implementations can attempt to obtain a URL from the AuthorityInformationAccess extension of the certificate, or from another implementation-specific source.

Returns

byte[]

a byte array containing a DER-encoded BasicOCSPResponse structure or null if one could not be obtained

Remarks

Fetch a DER-encoded BasicOCSPResponse from an OCSP responder. The method should not throw an exception.

Note: do not pass in the full DER-encoded OCSPResponse object obtained from the responder, only the DER-encoded BasicOCSPResponse value contained in the response data.