Click or drag to resize

DigitalSignatureFieldGetCert Method

Gets a certificate in the certificate chain (Cert entry) of the digital signature dictionary by index. Throws if Cert is not Array or String, throws if index is out of range and Cert is Array, throws if index is less than 1 and Cert is string, otherwise retrieves the certificate. Only to be used for old-style adbe.x509.rsa_sha1 signatures; for other signatures, use CMS getter functions instead.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public byte[] GetCert(
	uint in_index
)

Parameters

in_index
Type: SystemUInt32
-- An integral index which must be greater than 0 and less than the cert count as retrieved using GetCertCount.

Return Value

Type: Byte
A vector of bytes containing the certificate at the index. Returns empty vector if Cert is missing.
See Also