All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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

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

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v20.1.Core.dll

Declaration

byte[] GetEncoded(
    byte[] checkCertificateBytes,
    byte[] issuerCertificateBytes
)
Function GetEncoded(
    checkCertificateBytes As Byte(),
    issuerCertificateBytes As Byte()
) As Byte()

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
PdfOcspException

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