Loading...
Searching...
No Matches
X501DistinguishedName.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_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>
13#include <Crypto/ObjectIdentifier.h>
14#include <Crypto/X501AttributeTypeAndValue.h>
15
16 namespace pdftron { namespace Crypto {
17
22 class X501DistinguishedName
23{
24 public:
25 X501DistinguishedName(const X501DistinguishedName& other);
26 X501DistinguishedName& operator= (const X501DistinguishedName& other);
27 ~X501DistinguishedName();
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
63 X501DistinguishedName();
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
BasicTypes.h
ObjectIdentifier.h
PDFDoc.h
UString.h
X501AttributeTypeAndValue.h
pdftron::Crypto::ObjectIdentifier
Definition ObjectIdentifier.h:19
pdftron::Crypto::X501DistinguishedName::~X501DistinguishedName
~X501DistinguishedName()
pdftron::Crypto::X501DistinguishedName::m_impl
TRN_X501DistinguishedName m_impl
Definition X501DistinguishedName.h:68
pdftron::Crypto::X501DistinguishedName::GetAllAttributesAndValues
std::vector< pdftron::Crypto::X501AttributeTypeAndValue > GetAllAttributesAndValues() const
pdftron::Crypto::X501DistinguishedName::operator=
X501DistinguishedName & operator=(const X501DistinguishedName &other)
pdftron::Crypto::X501DistinguishedName::Destroy
void Destroy()
pdftron::Crypto::X501DistinguishedName::HasAttribute
bool HasAttribute(const ObjectIdentifier &in_oid) const
pdftron::Crypto::X501DistinguishedName::X501DistinguishedName
X501DistinguishedName(TRN_X501DistinguishedName impl)
pdftron::Crypto::X501DistinguishedName::GetStringValuesForAttribute
std::vector< UString > GetStringValuesForAttribute(const ObjectIdentifier &in_oid) const
pdftron::Crypto::X501DistinguishedName::X501DistinguishedName
X501DistinguishedName(const X501DistinguishedName &other)
pdftron::Crypto
Definition AlgorithmIdentifier.h:13
pdftron
Definition BasicTypes.h:10