Nesta página

QOpcUaX509DistinguishedName Class

Informações sobre um item de nome distinto. Mais...

Cabeçalho: #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 }

Funções 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

Membros públicos estáticos

QString typeToOid(QOpcUaX509DistinguishedName::Type type)

Descrição detalhada

Atualmente, esta classe está disponível como uma prévia tecnológica (Technology Preview) e, portanto, a API e as funcionalidades fornecidas pela classe estão sujeitas a alterações a qualquer momento, sem aviso prévio.

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

Veja também QOpcUaX509CertificateSigningRequest.

Documentação dos tipos de membros

enum class QOpcUaX509DistinguishedName::Type

Enumeração com tipos de entrada para X509DistinguishedName.

ConstanteValorDescrição
QOpcUaX509DistinguishedName::Type::CommonName0Nome comum
QOpcUaX509DistinguishedName::Type::CountryName1Nome do país
QOpcUaX509DistinguishedName::Type::LocalityName2Nome da localidade
QOpcUaX509DistinguishedName::Type::StateOrProvinceName3Nome do estado ou província
QOpcUaX509DistinguishedName::Type::OrganizationName4Nome da organização

Documentação da função de membro

QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName()

Cria um objeto X509DistinguishedName vazio.

QOpcUaX509DistinguishedName::QOpcUaX509DistinguishedName(const QOpcUaX509DistinguishedName &rhs)

Cria um X509DistinguishedName a partir de ` rhs`.

[noexcept] QOpcUaX509DistinguishedName::~QOpcUaX509DistinguishedName()

Destrói um X509DistinguishedName.

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

Retorna o valor de um ` type`.

Veja também setEntry().

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

Define o valor da entrada “ type ” como “ value ”. Os tipos já existentes serão sobrescritos.

Veja também entry().

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

Retorna a string de identificação do objeto para type.

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

Define os valores de rhs neste X509DistinguishedName.

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

Retorna ` true ` se este `X509DistinguishedName` tiver o mesmo 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.