All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
X509Certificate.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_CPPPDFX509Certificate
7 #define PDFTRON_H_CPPPDFX509Certificate
8 #include <C/PDF/TRN_X509Certificate.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
13 #include <PDF/DigestAlgorithm.h>
15 #include <PDF/X509Extension.h>
16 
17 namespace pdftron { namespace PDF {
18 
23 {
24 public:
25  X509Certificate(const X509Certificate& other);
28 
29  void Destroy();
30 
31  //methods:
32 
44 
55 
63 
71 
80 
88  UString ToString() const;
89 
99  UString GetFingerprint(const enum DigestAlgorithm::Type in_digest_algorithm = DigestAlgorithm::e_SHA256) const;
100 
106  std::vector<UChar> GetSerialNumber() const;
107 
113  std::vector<X509Extension> GetExtensions() const;
114 
120  std::vector<UChar> GetData() const;
121 
122 #ifdef SWIG
123  X509Certificate();
124 #endif
125 
126 #ifndef SWIGHIDDEN
127  X509Certificate(TRN_X509Certificate impl);
128  TRN_X509Certificate m_impl;
129 #endif
130 
131 private:
132 
133 #ifndef SWIGHIDDEN
134  mutable bool m_owner;
135 #endif
136 };
137 
138 #include <Impl/X509Certificate.inl>
139 } //end pdftron
140 } //end PDF
141 
142 
143 #endif //PDFTRON_H_CPPPDFX509Certificate
Int64 GetNotAfterEpochTime() const
TRN_Int64 Int64
Definition: BasicTypes.h:20
X509Certificate(const X509Certificate &other)
std::vector< UChar > GetSerialNumber() const
X501DistinguishedName GetIssuerField() const
std::vector< UChar > GetData() const
UString GetFingerprint(const enum DigestAlgorithm::Type in_digest_algorithm=DigestAlgorithm::e_SHA256) const
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
X509Certificate & operator=(const X509Certificate &other)
UInt32 GetRawX509VersionNumber() const
X501DistinguishedName GetSubjectField() const
Int64 GetNotBeforeEpochTime() const
std::vector< X509Extension > GetExtensions() const