All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VerificationOptions.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 
6 #ifndef PDFTRON_H_CPPPDFVerificationOptions
7 #define PDFTRON_H_CPPPDFVerificationOptions
8 #include <C/PDF/TRN_VerificationOptions.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
13 
14 namespace pdftron { namespace PDF {
15 
16 
21 {
22 public:
23  //enums:
27  };
28  enum TimeMode {
29  e_signing = 0,
32  };
34  VerificationOptions(TRN_VerificationOptions impl);
37 
38  void Destroy();
39 
40  //methods:
41 
48 
57  void AddTrustedCertificate(const UChar* in_certificate_buf, size_t in_buf_size);
58 
64  void AddTrustedCertificate(const UString& in_filepath);
65 
75  void AddTrustedCertificates(const UChar* in_P7C_binary_DER_certificates_file_data, const size_t in_size);
76 
82  void EnableModificationVerification(bool in_on_or_off);
83 
89  void EnableDigestVerification(bool in_on_or_off);
90 
96  void EnableTrustVerification(bool in_on_or_off);
97 
114  void EnableOnlineCRLRevocationChecking(bool in_on_or_off);
115 
121  void EnableOnlineOCSPRevocationChecking(bool in_on_or_off);
122 
123 
140  void EnableOnlineRevocationChecking(bool in_on_or_off);
141 
142 #ifndef SWIGHIDDEN
143  TRN_VerificationOptions m_impl;
144 #endif
145 
146 private:
147 
148 #ifndef SWIGHIDDEN
149  mutable bool m_owner;
150 #endif
151 };
152 
153 #include <Impl/VerificationOptions.inl>
154 } //end pdftron
155 } //end PDF
156 
157 
158 #endif //PDFTRON_H_CPPPDFVerificationOptions
void EnableOnlineOCSPRevocationChecking(bool in_on_or_off)
void EnableOnlineRevocationChecking(bool in_on_or_off)
VerificationOptions & operator=(const VerificationOptions &other)
void EnableOnlineCRLRevocationChecking(bool in_on_or_off)
void AddTrustedCertificates(const UChar *in_P7C_binary_DER_certificates_file_data, const size_t in_size)
TRN_UChar UChar
Definition: BasicTypes.h:12
VerificationOptions(const VerificationOptions &other)
void EnableDigestVerification(bool in_on_or_off)
void EnableTrustVerification(bool in_on_or_off)
void AddTrustedCertificate(const UChar *in_certificate_buf, size_t in_buf_size)
void EnableModificationVerification(bool in_on_or_off)