- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ObjectIdentifier.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5
6 #ifndef PDFTRON_H_CPPPDFObjectIdentifier
7 #define PDFTRON_H_CPPPDFObjectIdentifier
8 #include <C/Crypto/TRN_ObjectIdentifier.h>
9
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
13
14 namespace pdftron { namespace Crypto {
18 class ObjectIdentifier
19 {
20 public:
21 //enums:
22 enum Predefined {
23 e_commonName = 0,
24 e_surname = 1,
25 e_countryName = 2,
26 e_localityName = 3,
27 e_stateOrProvinceName = 4,
28 e_streetAddress = 5,
29 e_organizationName = 6,
30 e_organizationalUnitName = 7,
31 e_SHA1 = 8,
32 e_SHA256 = 9,
33 e_SHA384 = 10,
34 e_SHA512 = 11,
35 e_RIPEMD160 = 12,
36 e_RSA_encryption_PKCS1 = 13,
37 e_RSASSA_PSS = 14,
38 e_MGF1 = 15
39 };
40
41 ObjectIdentifier(const ObjectIdentifier& other);
42 ObjectIdentifier& operator= (const ObjectIdentifier& other);
43 ~ObjectIdentifier();
44
45 void Destroy();
46
47 //methods:
48
56 ObjectIdentifier(const Predefined in_oid_enum);
57
58 #ifdef SWIG
59
64 ObjectIdentifier(const std::vector<int>& in_arr);
65 #else
66
72 ObjectIdentifier(const UInt32* in_arr, const size_t in_size);
73 #endif
74
80 ObjectIdentifier(const DigestAlgorithm::Type in_digest_algorithm_type);
81
87 std::vector<UInt32> GetRawValue() const;
88
89 #ifdef SWIG
90 ObjectIdentifier();
91 #endif
92
93 #ifndef SWIGHIDDEN
94 ObjectIdentifier(TRN_ObjectIdentifier impl);
95 TRN_ObjectIdentifier m_impl;
96 #endif
97
98 private:
99
100 #ifndef SWIGHIDDEN
101 mutable bool m_owner;
102 #endif
103 };
104
105 #include <Impl/ObjectIdentifier.inl>
106 } //end Crypto
107 } //end pdftron
108
109
110 #endif //PDFTRON_H_CPPPDFObjectIdentifier
pdftron::Crypto::ObjectIdentifier::e_RIPEMD160
Definition: ObjectIdentifier.h:35
pdftron::Crypto::ObjectIdentifier::Predefined
Predefined
Definition: ObjectIdentifier.h:22
pdftron::Crypto::ObjectIdentifier::GetRawValue
std::vector< UInt32 > GetRawValue() const
pdftron::Crypto::ObjectIdentifier::e_MGF1
Definition: ObjectIdentifier.h:38
pdftron::Crypto::ObjectIdentifier::e_RSA_encryption_PKCS1
Definition: ObjectIdentifier.h:36
UString.h
pdftron::Crypto::ObjectIdentifier::~ObjectIdentifier
~ObjectIdentifier()
pdftron::Crypto::ObjectIdentifier::Destroy
void Destroy()
pdftron::Crypto::ObjectIdentifier
Definition: ObjectIdentifier.h:18
pdftron::Crypto::ObjectIdentifier::e_organizationalUnitName
Definition: ObjectIdentifier.h:30
pdftron::Crypto::ObjectIdentifier::e_organizationName
Definition: ObjectIdentifier.h:29
pdftron::Crypto::ObjectIdentifier::e_commonName
Definition: ObjectIdentifier.h:23
pdftron::Crypto::ObjectIdentifier::e_countryName
Definition: ObjectIdentifier.h:25
pdftron::UInt32
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
pdftron::Crypto::ObjectIdentifier::ObjectIdentifier
ObjectIdentifier(const ObjectIdentifier &other)
pdftron::Crypto::ObjectIdentifier::e_SHA512
Definition: ObjectIdentifier.h:34
PDFDoc.h
pdftron::Crypto::ObjectIdentifier::e_RSASSA_PSS
Definition: ObjectIdentifier.h:37
pdftron::Crypto::ObjectIdentifier::e_SHA384
Definition: ObjectIdentifier.h:33
pdftron::Crypto::ObjectIdentifier::e_surname
Definition: ObjectIdentifier.h:24
BasicTypes.h
pdftron::Crypto::ObjectIdentifier::e_streetAddress
Definition: ObjectIdentifier.h:28
pdftron::Crypto::ObjectIdentifier::e_localityName
Definition: ObjectIdentifier.h:26
pdftron::Crypto::ObjectIdentifier::e_stateOrProvinceName
Definition: ObjectIdentifier.h:27
pdftron::Crypto::ObjectIdentifier::e_SHA256
Definition: ObjectIdentifier.h:32
pdftron::Crypto::ObjectIdentifier::e_SHA1
Definition: ObjectIdentifier.h:31
pdftron::Crypto::ObjectIdentifier::m_impl
TRN_ObjectIdentifier m_impl
Definition: ObjectIdentifier.h:95
pdftron::Crypto::DigestAlgorithm::Type
Type
Definition: DigestAlgorithm.h:21
pdftron::Crypto::ObjectIdentifier::operator=
ObjectIdentifier & operator=(const ObjectIdentifier &other)