QOpcUaX509DistinguishedName Class
有关某个杰出名称项目的信息。更多
Header: | #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)
在此 X509DistinguishedName 中设置rhs 中的值。
bool QOpcUaX509DistinguishedName::operator==(const QOpcUaX509DistinguishedName &rhs) const
如果此 X509DistinguishedName 的值与rhs 相同,则返回true
。
© 2025 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.