Pdftools SDK
Loading...
Searching...
No Matches
PdfTools_PdfToolsSignatureValidationProfiles.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * File: PdfTools_PdfToolsSignatureValidationProfiles.h
4 *
5 * Description: Sub Header file for Pdftools SDK
6 *
7 * Author: PDF Tools AG
8 *
9 * Copyright: Copyright (C) 2023 - 2024 PDF Tools AG, Switzerland
10 * All rights reserved.
11 *
12 * Notice: By downloading and using this artifact, you accept PDF Tools AG's
13 * [license agreement](https://www.pdf-tools.com/license-agreement/),
14 * [privacy policy](https://www.pdf-tools.com/privacy-policy/),
15 * and allow PDF Tools AG to track your usage data.
16 *
17 *****************************************************************************/
18
19#ifndef PDFTOOLS_PDFTOOLSSIGNATUREVALIDATIONPROFILES_H__
20#define PDFTOOLS_PDFTOOLSSIGNATUREVALIDATIONPROFILES_H__
21
22#ifndef PDFTOOLS_CALL
23#if defined(WIN32)
24#define PDFTOOLS_CALL __stdcall
25#else
26#define PDFTOOLS_CALL
27#endif
28#endif
29
30#include "PdfTools_Types.h"
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38#ifdef _UNICODE
39#else
40#endif
41
42/******************************************************************************
43 * Profile
44 *****************************************************************************/
131
147/******************************************************************************
148 * ValidationOptions
149 *****************************************************************************/
215 TPdfToolsSignatureValidation_DataSource iCertificateSources);
249 TPdfToolsSignatureValidation_DataSource iRevocationInformationSources);
250
251/******************************************************************************
252 * TrustConstraints
253 *****************************************************************************/
326
327/******************************************************************************
328 * Default
329 *****************************************************************************/
340
341#ifdef __cplusplus
342}
343#endif
344
345#endif /* PDFTOOLS_PDFTOOLSSIGNATUREVALIDATIONPROFILES_H__ */
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_ValidationOptions_SetRevocationInformationSources(TPdfToolsSignatureValidationProfiles_ValidationOptions *pValidationOptions, TPdfToolsSignatureValidation_DataSource iRevocationInformationSources)
Allowed sources to get revocation information (OCSP, CRL)
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_TimeSource PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_ValidationOptions_GetTimeSource(TPdfToolsSignatureValidationProfiles_ValidationOptions *pValidationOptions)
Allowed validation time sources.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_ValidationOptions_SetTimeSource(TPdfToolsSignatureValidationProfiles_ValidationOptions *pValidationOptions, TPdfToolsSignatureValidation_TimeSource iTimeSource)
Allowed validation time sources.
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_DataSource PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_TrustConstraints_GetTrustSources(TPdfToolsSignatureValidationProfiles_TrustConstraints *pTrustConstraints)
Allowed sources for trusted certificates Note that the trust sources are implicitly added to the prof...
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Profile_SetCustomTrustList(TPdfToolsSignatureValidationProfiles_Profile *pProfile, TPdfToolsSignatureValidation_CustomTrustList *pCustomTrustList)
The custom list of trusted certificates Default: NULL (no custom trust list)
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_CustomTrustList *PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Profile_GetCustomTrustList(TPdfToolsSignatureValidationProfiles_Profile *pProfile)
The custom list of trusted certificates Default: NULL (no custom trust list)
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_TrustConstraints_SetRevocationCheckPolicy(TPdfToolsSignatureValidationProfiles_TrustConstraints *pTrustConstraints, TPdfToolsSignatureValidationProfiles_RevocationCheckPolicy iRevocationCheckPolicy)
Whether to check certificate revocation.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_TrustConstraints_SetTrustSources(TPdfToolsSignatureValidationProfiles_TrustConstraints *pTrustConstraints, TPdfToolsSignatureValidation_DataSource iTrustSources)
Allowed sources for trusted certificates Note that the trust sources are implicitly added to the prof...
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_ValidationOptions_SetCertificateSources(TPdfToolsSignatureValidationProfiles_ValidationOptions *pValidationOptions, TPdfToolsSignatureValidation_DataSource iCertificateSources)
Allowed sources to get certificates, e.g. intermediate issuer certificates.
PDFTOOLS_EXPORT TPdfToolsSignatureValidationProfiles_TrustConstraints *PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Profile_GetTimeStampTrustConstraints(TPdfToolsSignatureValidationProfiles_Profile *pProfile)
Trust constraints for certificates of time-stamps.
PDFTOOLS_EXPORT TPdfToolsSignatureValidationProfiles_TrustConstraints *PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Profile_GetSigningCertTrustConstraints(TPdfToolsSignatureValidationProfiles_Profile *pProfile)
Trust constraints for certificates of signatures.
PDFTOOLS_EXPORT TPdfToolsSignatureValidationProfiles_ProfileType PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Profile_GetType(TPdfToolsSignatureValidationProfiles_Profile *pProfile)
Get actual derived type of base type TPdfToolsSignatureValidationProfiles_Profile.
PDFTOOLS_EXPORT TPdfToolsSignatureValidationProfiles_Default *PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Default_New(void)
PDFTOOLS_EXPORT TPdfToolsSignatureValidationProfiles_ValidationOptions *PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_Profile_GetValidationOptions(TPdfToolsSignatureValidationProfiles_Profile *pProfile)
Signature validation options.
#define PDFTOOLS_CALL
Definition PdfTools_PdfToolsSignatureValidationProfiles.h:26
PDFTOOLS_EXPORT TPdfToolsSignatureValidationProfiles_RevocationCheckPolicy PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_TrustConstraints_GetRevocationCheckPolicy(TPdfToolsSignatureValidationProfiles_TrustConstraints *pTrustConstraints)
Whether to check certificate revocation.
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_DataSource PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_ValidationOptions_GetRevocationInformationSources(TPdfToolsSignatureValidationProfiles_ValidationOptions *pValidationOptions)
Allowed sources to get revocation information (OCSP, CRL)
PDFTOOLS_EXPORT TPdfToolsSignatureValidation_DataSource PDFTOOLS_CALL PdfToolsSignatureValidationProfiles_ValidationOptions_GetCertificateSources(TPdfToolsSignatureValidationProfiles_ValidationOptions *pValidationOptions)
Allowed sources to get certificates, e.g. intermediate issuer certificates.
#define PDFTOOLS_EXPORT
Definition PdfTools_Platform.h:143
TPdfToolsSignatureValidation_DataSource
The source of data such as certificates, OCRPs or CRLs.
Definition PdfTools_Types.h:1615
TPdfToolsSignatureValidation_TimeSource
The source of the validation time.
Definition PdfTools_Types.h:1586
TPdfToolsSignatureValidationProfiles_RevocationCheckPolicy
The revocation check policy.
Definition PdfTools_Types.h:1678
#define BOOL
Definition PdfTools_Types.h:23
TPdfToolsSignatureValidationProfiles_ProfileType
Type and subtype enumeration of TPdfToolsSignatureValidationProfiles_Profile.
Definition PdfTools_Types.h:2107
The custom collection of trusted certificates This class defines a custom collection of trusted certi...
The default signature validation profile.
The base class for signature validation profiles The profile defines the validation constraints.