En esta página

QOpcUaX509DistinguishedName Class

Información sobre un elemento de nombre distinguido. Más...

Encabezado: #include <QOpcUaX509DistinguishedName>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

Tipos públicos

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

Funciones públicas

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

Miembros públicos estáticos

QString typeToOid(QOpcUaX509DistinguishedName::Type type)

Descripción detallada

Esta clase está disponible actualmente como «Technology Preview» y, por lo tanto, la API y la funcionalidad que ofrece la clase pueden estar sujetas a cambios en cualquier momento sin previo aviso.

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

Véase también QOpcUaX509CertificateSigningRequest.

Documentación sobre los tipos de miembros

enum class QOpcUaX509DistinguishedName::Type

Enumeración con tipos de entrada para X509DistinguishedName.

ConstanteValorDescripción
QOpcUaX509DistinguishedName::Type::CommonName0Nombre común
QOpcUaX509DistinguishedName::Type::CountryName1Nombre del país
QOpcUaX509DistinguishedName::Type::LocalityName2Nombre de la localidad
QOpcUaX509DistinguishedName::Type::StateOrProvinceName3Nombre del estado o provincia
QOpcUaX509DistinguishedName::Type::OrganizationName4Nombre de la organización

Documentación sobre la función de miembro

QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName()

Crea un objeto X509DistinguishedName vacío.

QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName(const QOpcUaX509DistinguishedName &rhs)

Crea un X509DistinguishedName a partir de « rhs ».

[noexcept] QOpcUaX509DistinguishedName::~QOpcUaX509DistinguishedName()

Elimina un X509DistinguishedName.

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

Devuelve el valor de un ` type`.

Véase también setEntry().

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

Establece la entrada de « type » en « value ». Los tipos ya existentes se sobrescribirán.

Véase también entry().

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

Devuelve la cadena de identificación del objeto correspondiente a « type ».

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

Establece los valores de « rhs » en este «X509DistinguishedName».

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

Devuelve « true » si este «X509DistinguishedName» tiene el mismo valor que « rhs ».

© 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.