All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
X501DistinguishedName.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 
6 #ifndef PDFTRON_H_CPPPDFX501DistinguishedName
7 #define PDFTRON_H_CPPPDFX501DistinguishedName
8 #include <C/Crypto/TRN_X501DistinguishedName.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
15 
16 namespace pdftron { namespace Crypto {
17 
23 {
24 public:
28 
29  void Destroy();
30 
31  //methods:
32 
39  bool HasAttribute(const ObjectIdentifier& in_oid) const;
40 
48 #ifdef SWIG
49  // 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>.
50  std::vector<std::string> GetStringValuesForAttribute(const ObjectIdentifier& in_oid) const;
51 #else
52  std::vector<UString> GetStringValuesForAttribute(const ObjectIdentifier& in_oid) const;
53 #endif
54 
60  std::vector<pdftron::Crypto::X501AttributeTypeAndValue> GetAllAttributesAndValues() const;
61 
62 #ifdef SWIG
64 #endif
65 
66 #ifndef SWIGHIDDEN
67  X501DistinguishedName(TRN_X501DistinguishedName impl);
68  TRN_X501DistinguishedName m_impl;
69 #endif
70 
71 private:
72 
73 #ifndef SWIGHIDDEN
74  mutable bool m_owner;
75 #endif
76 };
77 
78 #include <Impl/X501DistinguishedName.inl>
79 } //end Crypto
80 } //end pdftron
81 
82 
83 #endif //PDFTRON_H_CPPPDFX501DistinguishedName
bool HasAttribute(const ObjectIdentifier &in_oid) const
X501DistinguishedName(const X501DistinguishedName &other)
X501DistinguishedName & operator=(const X501DistinguishedName &other)
std::vector< pdftron::Crypto::X501AttributeTypeAndValue > GetAllAttributesAndValues() const
std::vector< UString > GetStringValuesForAttribute(const ObjectIdentifier &in_oid) const