QOpcUaX509DistinguishedName Class

Information about a distinguished name item. 更多...

头: #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 )

详细描述

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");
					

另请参阅 QOpcUaX509CertificateSigningRequest .

成员类型文档编制

enum class QOpcUaX509DistinguishedName:: Type

Enum with entry types for X509DistinguishedName.

常量 描述
QOpcUaX509DistinguishedName::Type::CommonName 0 Common name
QOpcUaX509DistinguishedName::Type::CountryName 1 Country name
QOpcUaX509DistinguishedName::Type::LocalityName 2 Locality name
QOpcUaX509DistinguishedName::Type::StateOrProvinceName 3 State or province name
QOpcUaX509DistinguishedName::Type::OrganizationName 4 Organization name

成员函数文档编制

QOpcUaX509DistinguishedName:: QOpcUaX509DistinguishedName ()

Constructs an empty X509DistinguishedName.

QOpcUaX509DistinguishedName:: QOpcUaX509DistinguishedName (const QOpcUaX509DistinguishedName & rhs )

Constructs a X509DistinguishedName from rhs .

QOpcUaX509DistinguishedName:: ~QOpcUaX509DistinguishedName ()

Destructs a X509DistinguishedName.

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

Returns value for a type .

另请参阅 setEntry ().

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

Sets the entry of type to value . Already existing types will be overwritten.

另请参阅 entry ().

[static] QString QOpcUaX509DistinguishedName:: typeToOid ( QOpcUaX509DistinguishedName::Type type )

Returns the object id string for type .

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

设置值从 rhs in this X509DistinguishedName.

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

返回 true if this X509DistinguishedName has the same value as rhs .