Information about a distinguished name item. More...
Header: | #include <QOpcUaX509DistinguishedName> |
qmake: | QT += opcua |
Since: | Qt 5.14 |
enum class | Type { CommonName, CountryName, LocalityName, StateOrProvinceName, OrganizationName } |
QOpcUaX509DistinguishedName(const QOpcUaX509DistinguishedName &rhs) | |
QOpcUaX509DistinguishedName() | |
QOpcUaX509DistinguishedName & | operator=(const QOpcUaX509DistinguishedName &rhs) |
~QOpcUaX509DistinguishedName() | |
QString | entry(QOpcUaX509DistinguishedName::Type type) const |
void | setEntry(QOpcUaX509DistinguishedName::Type type, const QString &value) |
bool | operator==(const QOpcUaX509DistinguishedName &rhs) const |
QString | typeToOid(QOpcUaX509DistinguishedName::Type type) |
This class is currently available as a Technology Preview, and therefore the API and functionality provided by the class may be subject to change at any time without prior notice.
QOpcUaX509DistinguishedName dn; dn.setEntry(QOpcUaX509DistinguishedName::Type::CommonName, "QtOpcUaViewer"); dn.setEntry(QOpcUaX509DistinguishedName::Type::CountryName, "DE"); dn.setEntry(QOpcUaX509DistinguishedName::Type::LocalityName, "Berlin"); dn.setEntry(QOpcUaX509DistinguishedName::Type::StateOrProvinceName, "Berlin"); dn.setEntry(QOpcUaX509DistinguishedName::Type::OrganizationName, "The Qt Company");
See also QOpcUaX509CertificateSigningRequest.
Enum with entry types for X509DistinguishedName.
Constant | Value | Description |
---|---|---|
QOpcUaX509DistinguishedName::Type::CommonName |
0 |
Common name |
QOpcUaX509DistinguishedName::Type::CountryName |
1 |
Country name |
QOpcUaX509DistinguishedName::Type::LocalityName |
2 |
Locality name |
QOpcUaX509DistinguishedName::Type::StateOrProvinceName |
3 |
State or provice name |
QOpcUaX509DistinguishedName::Type::OrganizationName |
4 |
Organization name |
Constructs a X509DistinguishedName from rhs.
Constructs an empty X509DistinguishedName.
Sets the values from rhs in this X509DistinguishedName.
Destructs a X509DistinguishedName.
Returns value for a type.
See also setEntry().
Sets the entry of type to value. Already existing types will be overwritten.
See also entry().
[static]
QString QOpcUaX509DistinguishedName::typeToOid(QOpcUaX509DistinguishedName::Type type)
Returns the object id string for type.
Returns true
if this X509DistinguishedName has the same value as rhs.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qopcuax509distinguishedname.html