Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IOcspClient.GetEncoded(Byte[], Byte[]) Method

Returns a DER- or BER-encoded OCSPResponse ASN.1 object.

Namespace: DevExpress.Office.DigitalSignatures

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

byte[] GetEncoded(
    byte[] checkCertificateBytes,
    byte[] issuerCertificateBytes
)

#Parameters

Name Type Description
checkCertificateBytes Byte[]

A DER-encoded x509 certificate to check.

issuerCertificateBytes Byte[]

A DER-encoded x509 issuers certificate.

#Returns

Type Description
Byte[]

A DER- or BER-encoded OCSPResponse ASN.1 object or null.

#Exceptions

Type Description
OcspException

Occurs if the OCSP server request failed.

WebException

Occurs if the OCSP server request failed.

#Remarks

The GetEncoded method returns null if the OCSP server URI is null or the OCSP server URI is not added to the certificate.

See Also