QOpcUaX509DistinguishedName Class

Information about a distinguished name item. More...

Header: #include <QOpcUaX509DistinguishedName>
qmake: QT += opcua
Since: Qt 5.14

This class was introduced in Qt 5.14.

Public Types

enum class Type { CommonName, CountryName, LocalityName, StateOrProvinceName, OrganizationName }

Public Functions

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

Static Public Members

QString typeToOid(QOpcUaX509DistinguishedName::Type type)

Detailed Description

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.

Member Type Documentation

enum class QOpcUaX509DistinguishedName::Type

Enum with entry types for X509DistinguishedName.

ConstantValueDescription
QOpcUaX509DistinguishedName::Type::CommonName0Common name
QOpcUaX509DistinguishedName::Type::CountryName1Country name
QOpcUaX509DistinguishedName::Type::LocalityName2Locality name
QOpcUaX509DistinguishedName::Type::StateOrProvinceName3State or provice name
QOpcUaX509DistinguishedName::Type::OrganizationName4Organization name

Member Function Documentation

QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName(const QOpcUaX509DistinguishedName &rhs)

Constructs a X509DistinguishedName from rhs.

QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName()

Constructs an empty X509DistinguishedName.

QOpcUaX509DistinguishedName &QOpcUaX509DistinguishedName::operator=(const QOpcUaX509DistinguishedName &rhs)

Sets the values from rhs in this X509DistinguishedName.

QOpcUaX509DistinguishedName::~QOpcUaX509DistinguishedName()

Destructs a X509DistinguishedName.

QString QOpcUaX509DistinguishedName::entry(QOpcUaX509DistinguishedName::Type type) const

Returns value for a type.

See also setEntry().

void QOpcUaX509DistinguishedName::setEntry(QOpcUaX509DistinguishedName::Type type, const QString &value)

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.

bool QOpcUaX509DistinguishedName::operator==(const QOpcUaX509DistinguishedName &rhs) const

Returns true if this X509DistinguishedName has the same value as rhs.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.