All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VerificationResult.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 
6 #ifndef PDFTRON_H_CPPPDFVerificationResult
7 #define PDFTRON_H_CPPPDFVerificationResult
8 #include <C/PDF/TRN_VerificationResult.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
13 
14 #include <Crypto/DigestAlgorithm.h>
15 #include <PDF/DisallowedChange.h>
16 
17 #include <vector>
18 
19 namespace pdftron { namespace PDF {
20  class TrustVerificationResult;
21 
26 {
27 public:
29  //enums:
36  };
37  enum DigestStatus {
45  };
46  enum TrustStatus {
52  };
60  };
64 
65  void Destroy();
66 
67  //methods:
68 
78  bool GetVerificationStatus() const;
79 
86 
93 
100 
107 
113  bool HasTrustVerificationResult() const;
122 
128  std::vector<DisallowedChange> GetDisallowedChanges() const;
129 
137 
144 
151 
158 
165 
179 #ifdef SWIG
180  // We use an std::vector of UTF-8 std::strings for SWIG, because SWIG has trouble with mapping UString to string when it's in a vector<UString>.
181  std::vector<std::string> GetUnsupportedFeatures() const;
182 #else
183  std::vector<UString> GetUnsupportedFeatures() const;
184 #endif
185 
186 #ifdef SWIG
188 #endif
189 
190 #ifndef SWIGHIDDEN
191  VerificationResult(TRN_VerificationResult impl);
192  TRN_VerificationResult m_impl;
193 #endif
194 
195 private:
196 
197 #ifndef SWIGHIDDEN
198  mutable bool m_owner;
199 #endif
200 };
201 
202 
203 } //end pdftron
204 } //end PDF
205 
206 #include <Impl/TrustVerificationResult.inl>
207 
208 #endif //PDFTRON_H_CPPPDFVerificationResult
UString GetPermissionsStatusAsString() const
DocumentStatus GetDocumentStatus() const
std::vector< UString > GetUnsupportedFeatures() const
VerificationResult(const VerificationResult &other)
ModificationPermissionsStatus GetPermissionsStatus() const
UString GetTrustStatusAsString() const
bool HasTrustVerificationResult() const
VerificationResult & operator=(const VerificationResult &other)
UString GetDocumentStatusAsString() const
std::vector< DisallowedChange > GetDisallowedChanges() const
DigestStatus GetDigestStatus() const
Crypto::DigestAlgorithm::Type GetDigestAlgorithm() const
TrustStatus GetTrustStatus() const
UString GetDigestStatusAsString() const
TrustVerificationResult GetTrustVerificationResult() const
pdftron::PDF::DisallowedChange DisallowedChange