Pdftools SDK
|
Go to the source code of this file.
Typedefs | |
typedef void(PDFTOOLS_CALL * | TPdfToolsSignatureValidation_Validator_ConstraintA) (void *pContext, const char *szMessage, TPdfToolsSignatureValidation_Indication iIndication, TPdfToolsSignatureValidation_SubIndication iSubIndication, TPdfToolsPdf_SignedSignatureField *pSignature, const char *szDataPart) |
typedef void(PDFTOOLS_CALL * | TPdfToolsSignatureValidation_Validator_ConstraintW) (void *pContext, const WCHAR *szMessage, TPdfToolsSignatureValidation_Indication iIndication, TPdfToolsSignatureValidation_SubIndication iSubIndication, TPdfToolsPdf_SignedSignatureField *pSignature, const WCHAR *szDataPart) |
#define PDFTOOLS_CALL |
#define PdfToolsSignatureValidation_Certificate_GetFingerprint PdfToolsSignatureValidation_Certificate_GetFingerprintA |
#define PdfToolsSignatureValidation_Certificate_GetIssuerName PdfToolsSignatureValidation_Certificate_GetIssuerNameA |
#define PdfToolsSignatureValidation_Certificate_GetSubject PdfToolsSignatureValidation_Certificate_GetSubjectA |
#define PdfToolsSignatureValidation_Certificate_GetSubjectName PdfToolsSignatureValidation_Certificate_GetSubjectNameA |
#define PdfToolsSignatureValidation_ConstraintResult_GetMessage PdfToolsSignatureValidation_ConstraintResult_GetMessageA |
#define PdfToolsSignatureValidation_CustomTrustList_AddArchive PdfToolsSignatureValidation_CustomTrustList_AddArchiveA |
#define PdfToolsSignatureValidation_Validator_AddConstraintHandler PdfToolsSignatureValidation_Validator_AddConstraintHandlerA |
#define PdfToolsSignatureValidation_Validator_RemoveConstraintHandler PdfToolsSignatureValidation_Validator_RemoveConstraintHandlerA |
#define TPdfToolsSignatureValidation_Validator_Constraint TPdfToolsSignatureValidation_Validator_ConstraintA |
typedef void(PDFTOOLS_CALL * TPdfToolsSignatureValidation_Validator_ConstraintA) (void *pContext, const char *szMessage, TPdfToolsSignatureValidation_Indication iIndication, TPdfToolsSignatureValidation_SubIndication iSubIndication, TPdfToolsPdf_SignedSignatureField *pSignature, const char *szDataPart) |
Report the result of a constraint validation of PdfToolsSignatureValidation_Validator_Validate.
[in,out] | pContext | Context of the event callback. |
[in] | szMessage | The validation message |
[in] | iIndication | The main indication |
[in] | iSubIndication | The sub indication |
[in,out] | pSignature | The signature field |
[in] | szDataPart | The data part is NULL for constraints of the main signature and a path for constraints related to elements of the signature. Examples:
|
typedef void(PDFTOOLS_CALL * TPdfToolsSignatureValidation_Validator_ConstraintW) (void *pContext, const WCHAR *szMessage, TPdfToolsSignatureValidation_Indication iIndication, TPdfToolsSignatureValidation_SubIndication iSubIndication, TPdfToolsPdf_SignedSignatureField *pSignature, const WCHAR *szDataPart) |
Report the result of a constraint validation of PdfToolsSignatureValidation_Validator_Validate.
[in,out] | pContext | Context of the event callback. |
[in] | szMessage | The validation message |
[in] | iIndication | The main indication |
[in] | iSubIndication | The sub indication |
[in,out] | pSignature | The signature field |
[in] | szDataPart | The data part is NULL for constraints of the main signature and a path for constraints related to elements of the signature. Examples:
|
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetFingerprintA | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetFingerprintW | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetIssuerNameA | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) that issued the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetIssuerNameW | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) that issued the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetNotAfter | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
TPdfToolsSys_Date * | pNotAfter ) |
The date after which the certificate is no longer valid.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pNotAfter | Retrieved value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetNotBefore | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
TPdfToolsSys_Date * | pNotBefore ) |
The date on which the certificate becomes valid.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pNotBefore | Retrieved value. |
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetRawData | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
unsigned char * | pBuffer, | ||
size_t | nBufferSize ) |
The raw data of the certificate as a byte array.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved array pBuffer . |
pBuffer
. -1
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_DataSource PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetSource | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate | ) |
Source of the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetSubjectA | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The subject of the certificate The distinguished name (DN) of the person or authority that owns the certificate. Formatted according to RFC 4514.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetSubjectNameA | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The name (subject) of the certificate The common name (CN) of the person or authority that owns the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetSubjectNameW | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The name (subject) of the certificate The common name (CN) of the person or authority that owns the certificate.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if either an error occurred or the returned buffer is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below. 0
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetSubjectW | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The subject of the certificate The distinguished name (DN) of the person or authority that owns the certificate. Formatted according to RFC 4514.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_ConstraintResult *PDFTOOLS_CALL PdfToolsSignatureValidation_Certificate_GetValidity | ( | TPdfToolsSignatureValidation_Certificate * | pCertificate | ) |
Whether the certificate is valid according to the validation profile used.
[in,out] | pCertificate | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Certificate. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_Certificate *PDFTOOLS_CALL PdfToolsSignatureValidation_CertificateChain_Get | ( | TPdfToolsSignatureValidation_CertificateChain * | pCertificateChain, |
int | iIndex ) |
Returns the element at the specified position in the given list.
[in,out] | pCertificateChain | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CertificateChain. |
[in] | iIndex |
NULL
if there is an error. NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSignatureValidation_CertificateChain_GetCount | ( | TPdfToolsSignatureValidation_CertificateChain * | pCertificateChain | ) |
Get the number of elements in the list.
[in,out] | pCertificateChain | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CertificateChain. |
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_CertificateChain_IsComplete | ( | TPdfToolsSignatureValidation_CertificateChain * | pCertificateChain | ) |
Whether all certificates of the chain are available.
[in,out] | pCertificateChain | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CertificateChain. |
May indicate an error in certain scenarios. For further information see the note section below.
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_CertificateChain *PDFTOOLS_CALL PdfToolsSignatureValidation_CmsSignatureContent_GetCertificateChain | ( | TPdfToolsSignatureValidation_CmsSignatureContent * | pCmsSignatureContent | ) |
The certificate chain of the signing certificate.
[in,out] | pCmsSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CmsSignatureContent. |
NULL
if either an error occurred or the returned object is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below.
NULL
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsCrypto_HashAlgorithm PDFTOOLS_CALL PdfToolsSignatureValidation_CmsSignatureContent_GetHashAlgorithm | ( | TPdfToolsSignatureValidation_CmsSignatureContent * | pCmsSignatureContent | ) |
The hash algorithm used to calculate the signature's message digest.
[in,out] | pCmsSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CmsSignatureContent. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_Certificate *PDFTOOLS_CALL PdfToolsSignatureValidation_CmsSignatureContent_GetSigningCertificate | ( | TPdfToolsSignatureValidation_CmsSignatureContent * | pCmsSignatureContent | ) |
The signing certificate.
[in,out] | pCmsSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CmsSignatureContent. |
NULL
if either an error occurred or the returned object is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below.
NULL
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_TimeStampContent *PDFTOOLS_CALL PdfToolsSignatureValidation_CmsSignatureContent_GetTimeStamp | ( | TPdfToolsSignatureValidation_CmsSignatureContent * | pCmsSignatureContent | ) |
The data and validation result of the embedded time-stamp.
[in,out] | pCmsSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CmsSignatureContent. |
NULL
if either an error occurred or the returned object is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below.
NULL
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_CmsSignatureContent_GetValidationTime | ( | TPdfToolsSignatureValidation_CmsSignatureContent * | pCmsSignatureContent, |
TPdfToolsSys_Date * | pValidationTime ) |
The time at which the signature has been validated.
[in,out] | pCmsSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CmsSignatureContent. |
[out] | pValidationTime | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_TimeSource PDFTOOLS_CALL PdfToolsSignatureValidation_CmsSignatureContent_GetValidationTimeSource | ( | TPdfToolsSignatureValidation_CmsSignatureContent * | pCmsSignatureContent | ) |
The source for the validation time.
[in,out] | pCmsSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CmsSignatureContent. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_Indication PDFTOOLS_CALL PdfToolsSignatureValidation_ConstraintResult_GetIndication | ( | TPdfToolsSignatureValidation_ConstraintResult * | pConstraintResult | ) |
The main indication.
[in,out] | pConstraintResult | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ConstraintResult. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_ConstraintResult_GetMessageA | ( | TPdfToolsSignatureValidation_ConstraintResult * | pConstraintResult, |
char * | pBuffer, | ||
size_t | nBufferSize ) |
The validation message.
[in,out] | pConstraintResult | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ConstraintResult. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSignatureValidation_ConstraintResult_GetMessageW | ( | TPdfToolsSignatureValidation_ConstraintResult * | pConstraintResult, |
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
The validation message.
[in,out] | pConstraintResult | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ConstraintResult. |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_SubIndication PDFTOOLS_CALL PdfToolsSignatureValidation_ConstraintResult_GetSubIndication | ( | TPdfToolsSignatureValidation_ConstraintResult * | pConstraintResult | ) |
The sub indication.
[in,out] | pConstraintResult | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ConstraintResult. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_CustomTrustList_AddArchiveA | ( | TPdfToolsSignatureValidation_CustomTrustList * | pCustomTrustList, |
const TPdfToolsSys_StreamDescriptor * | pStreamDesc, | ||
const char * | szPassword ) |
Add certificates from a PFX (PKCS#12) archive Add certificates to the trust list.
[in,out] | pCustomTrustList | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CustomTrustList. |
[in] | pStreamDesc | The certificates in PKCS#12 format (.p12, .pfx) |
[in] | szPassword | The password required to decrypt the archive. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_CustomTrustList_AddArchiveW | ( | TPdfToolsSignatureValidation_CustomTrustList * | pCustomTrustList, |
const TPdfToolsSys_StreamDescriptor * | pStreamDesc, | ||
const WCHAR * | szPassword ) |
Add certificates from a PFX (PKCS#12) archive Add certificates to the trust list.
[in,out] | pCustomTrustList | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CustomTrustList. |
[in] | pStreamDesc | The certificates in PKCS#12 format (.p12, .pfx) |
[in] | szPassword | The password required to decrypt the archive. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_CustomTrustList_AddCertificates | ( | TPdfToolsSignatureValidation_CustomTrustList * | pCustomTrustList, |
const TPdfToolsSys_StreamDescriptor * | pCertificate ) |
Add one or more certificates Add certificates to the trust list.
[in,out] | pCustomTrustList | Acts as a handle to the native object of type TPdfToolsSignatureValidation_CustomTrustList. |
[in] | pCertificate | The sequence of certificates in either PEM (.pem, ASCII text) or DER (.cer, binary) form |
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_CustomTrustList *PDFTOOLS_CALL PdfToolsSignatureValidation_CustomTrustList_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_SignatureContentType PDFTOOLS_CALL PdfToolsSignatureValidation_SignatureContent_GetType | ( | TPdfToolsSignatureValidation_SignatureContent * | pSignatureContent | ) |
Get actual derived type of base type TPdfToolsSignatureValidation_SignatureContent.
This function is invoked prior to downcasting to ascertain the derived object type.
[in,out] | pSignatureContent | Acts as a handle to a native object. |
0
in case of an error.0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_ConstraintResult *PDFTOOLS_CALL PdfToolsSignatureValidation_SignatureContent_GetValidity | ( | TPdfToolsSignatureValidation_SignatureContent * | pSignatureContent | ) |
Whether the cryptographic signature is valid according to the validation profile used.
[in,out] | pSignatureContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_SignatureContent. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_CertificateChain *PDFTOOLS_CALL PdfToolsSignatureValidation_TimeStampContent_GetCertificateChain | ( | TPdfToolsSignatureValidation_TimeStampContent * | pTimeStampContent | ) |
The certificate chain of the signing certificate.
[in,out] | pTimeStampContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_TimeStampContent. |
NULL
if either an error occurred or the returned object is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below.
NULL
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_TimeStampContent_GetDate | ( | TPdfToolsSignatureValidation_TimeStampContent * | pTimeStampContent, |
TPdfToolsSys_Date * | pDate ) |
The time-stamp time.
[in,out] | pTimeStampContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_TimeStampContent. |
[out] | pDate | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsCrypto_HashAlgorithm PDFTOOLS_CALL PdfToolsSignatureValidation_TimeStampContent_GetHashAlgorithm | ( | TPdfToolsSignatureValidation_TimeStampContent * | pTimeStampContent | ) |
The hash algorithm used to calculate the signature's message digest.
[in,out] | pTimeStampContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_TimeStampContent. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_Certificate *PDFTOOLS_CALL PdfToolsSignatureValidation_TimeStampContent_GetSigningCertificate | ( | TPdfToolsSignatureValidation_TimeStampContent * | pTimeStampContent | ) |
The signing certificate.
[in,out] | pTimeStampContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_TimeStampContent. |
NULL
if either an error occurred or the returned object is actually NULL
. To determine if an error has occurred, check the error code as described in the note section below.
NULL
was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_TimeStampContent_GetValidationTime | ( | TPdfToolsSignatureValidation_TimeStampContent * | pTimeStampContent, |
TPdfToolsSys_Date * | pValidationTime ) |
The time at which the signature has been validated.
[in,out] | pTimeStampContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_TimeStampContent. |
[out] | pValidationTime | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_TimeSource PDFTOOLS_CALL PdfToolsSignatureValidation_TimeStampContent_GetValidationTimeSource | ( | TPdfToolsSignatureValidation_TimeStampContent * | pTimeStampContent | ) |
The source for the validation time.
[in,out] | pTimeStampContent | Acts as a handle to the native object of type TPdfToolsSignatureValidation_TimeStampContent. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_SignatureContent *PDFTOOLS_CALL PdfToolsSignatureValidation_ValidationResult_GetSignatureContent | ( | TPdfToolsSignatureValidation_ValidationResult * | pValidationResult | ) |
The data and validation result of the cryptographic signature.
[in,out] | pValidationResult | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ValidationResult. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsPdf_SignedSignatureField *PDFTOOLS_CALL PdfToolsSignatureValidation_ValidationResult_GetSignatureField | ( | TPdfToolsSignatureValidation_ValidationResult * | pValidationResult | ) |
The signature field.
[in,out] | pValidationResult | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ValidationResult. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsSignatureValidation_ValidationResult *PDFTOOLS_CALL PdfToolsSignatureValidation_ValidationResults_Get | ( | TPdfToolsSignatureValidation_ValidationResults * | pValidationResults, |
int | iIndex ) |
Returns the element at the specified position in the given list.
[in,out] | pValidationResults | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ValidationResults. |
[in] | iIndex |
NULL
if there is an error. NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSignatureValidation_ValidationResults_GetCount | ( | TPdfToolsSignatureValidation_ValidationResults * | pValidationResults | ) |
Get the number of elements in the list.
[in,out] | pValidationResults | Acts as a handle to the native object of type TPdfToolsSignatureValidation_ValidationResults. |
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_Validator_AddConstraintHandlerA | ( | TPdfToolsSignatureValidation_Validator * | pValidator, |
void * | pContext, | ||
TPdfToolsSignatureValidation_Validator_ConstraintA | pFunction ) |
Adds event handler.
[in,out] | pValidator | Pointer to the object to which the event handler is added. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is added. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_Validator_AddConstraintHandlerW | ( | TPdfToolsSignatureValidation_Validator * | pValidator, |
void * | pContext, | ||
TPdfToolsSignatureValidation_Validator_ConstraintW | pFunction ) |
Adds event handler.
[in,out] | pValidator | Pointer to the object to which the event handler is added. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is added. |
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_Validator *PDFTOOLS_CALL PdfToolsSignatureValidation_Validator_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_Validator_RemoveConstraintHandlerA | ( | TPdfToolsSignatureValidation_Validator * | pValidator, |
void * | pContext, | ||
TPdfToolsSignatureValidation_Validator_ConstraintA | pFunction ) |
Removes event handler.
[in,out] | pValidator | Pointer to the object from which the event handler is removed. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is removed. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidation_Validator_RemoveConstraintHandlerW | ( | TPdfToolsSignatureValidation_Validator * | pValidator, |
void * | pContext, | ||
TPdfToolsSignatureValidation_Validator_ConstraintW | pFunction ) |
Removes event handler.
[in,out] | pValidator | Pointer to the object from which the event handler is removed. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is removed. |
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_ValidationResults *PDFTOOLS_CALL PdfToolsSignatureValidation_Validator_Validate | ( | TPdfToolsSignatureValidation_Validator * | pValidator, |
TPdfToolsPdf_Document * | pDocument, | ||
TPdfToolsSignatureValidationProfiles_Profile * | pProfile, | ||
TPdfToolsSignatureValidation_SignatureSelector | iSelector ) |
Validate the signatures of a PDF document.
[in,out] | pValidator | Acts as a handle to the native object of type TPdfToolsSignatureValidation_Validator. |
[in,out] | pDocument | The document to check the signatures of |
[in,out] | pProfile | The validation profile |
[in] | iSelector | The signatures to validate |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes: