Skip to content

PDFOcspEventData

Namespace: O2S.Components.PDF4NET.DigitalSignatures

Defines the arguments for the PDFDigitalSignature.OnOcspInformationNeeded event.

public class PDFOcspEventData

Inheritance ObjectPDFOcspEventData

Properties

OcspRequest

Gets the OCSP request.

public Byte[] OcspRequest { get; }

Property Value

Byte[]
The DER encoded OCSP request that needs to be submitted to the OCSP server.


OcspResponse

Gets or sets the OCSP response.

public Byte[] OcspResponse { get; set; }

Property Value

Byte[]
The OCSP response received from the server as the result of submitting the OCSP request.

Remarks

The OCSP response is not validated in any way by the library, it is embedded as it is in the digital signature.
If this property is null then no OCSP information is embedded in the signature.


OcspUrl

Gets the URL from where the OCSP information can be retrieved.

public string OcspUrl { get; }

Property Value

String
The URL where the OCSP information can be retrieved from.

Remarks

This value is extracted from the certificate, if it is included.