QOpcUaX509DistinguishedName Class
关于一个特征名条目的信息。更多内容...
| 标题: | #include <QOpcUaX509DistinguishedName> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
公共类型
| enum class | Type { CommonName, CountryName, LocalityName, StateOrProvinceName, OrganizationName } |
公共函数
| QOpcUaX509DistinguishedName() | |
| QOpcUaX509DistinguishedName(const QOpcUaX509DistinguishedName &rhs) | |
| ~QOpcUaX509DistinguishedName() | |
| QString | entry(QOpcUaX509DistinguishedName::Type type) const |
| void | setEntry(QOpcUaX509DistinguishedName::Type type, const QString &value) |
| QOpcUaX509DistinguishedName & | operator=(const QOpcUaX509DistinguishedName &rhs) |
| bool | operator==(const QOpcUaX509DistinguishedName &rhs) const |
静态公共成员
| QString | typeToOid(QOpcUaX509DistinguishedName::Type type) |
详细说明
该类目前作为技术预览版提供,因此该类提供的 API 和功能可能会随时更改,恕不另行通知。
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");另请参阅 QOpcUaX509CertificateSigningRequest 。
成员类型文档
enum class QOpcUaX509DistinguishedName::Type
包含 X509DistinguishedName 条目类型的枚举。
| 常量 | 值 | 描述 |
|---|---|---|
QOpcUaX509DistinguishedName::Type::CommonName | 0 | 通用名称 |
QOpcUaX509DistinguishedName::Type::CountryName | 1 | 国家名称 |
QOpcUaX509DistinguishedName::Type::LocalityName | 2 | 地点名称 |
QOpcUaX509DistinguishedName::Type::StateOrProvinceName | 3 | 州或省名 |
QOpcUaX509DistinguishedName::Type::OrganizationName | 4 | 组织名称 |
成员函数文档
QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName()
创建一个空的 X509DistinguishedName。
QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName(const QOpcUaX509DistinguishedName &rhs)
根据rhs 构建一个X509DistinguishedName。
[noexcept] QOpcUaX509DistinguishedName::~QOpcUaX509DistinguishedName()
销毁一个 X509DistinguishedName。
QString QOpcUaX509DistinguishedName::entry(QOpcUaX509DistinguishedName::Type type) const
返回type 的值。
另请参阅 setEntry()。
void QOpcUaX509DistinguishedName::setEntry(QOpcUaX509DistinguishedName::Type type, const QString &value)
将type 的条目设置为value 。已存在的类型将被覆盖。
另请参阅 entry()。
[static] QString QOpcUaX509DistinguishedName::typeToOid(QOpcUaX509DistinguishedName::Type type)
返回type 的对象ID字符串。
QOpcUaX509DistinguishedName &QOpcUaX509DistinguishedName::operator=(const QOpcUaX509DistinguishedName &rhs)
将rhs 中的值设置到此X509DistinguishedName中。
bool QOpcUaX509DistinguishedName::operator==(const QOpcUaX509DistinguishedName &rhs) const
如果该 X509DistinguishedName 的值与rhs 相同,则返回true 。
© 2026 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.