QOpcUaUserTokenPolicy Class

Die OPC UA UserTokenPolicy. Mehr...

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

Öffentliche Typen

enum TokenType { Anonymous, Username, Certificate, IssuedToken }

Öffentliche Funktionen

QOpcUaUserTokenPolicy()
QOpcUaUserTokenPolicy(const QOpcUaUserTokenPolicy &rhs)
QString issuedTokenType() const
QString issuerEndpointUrl() const
QString policyId() const
QString securityPolicy() const
void setIssuedTokenType(const QString &issuedTokenType)
void setIssuerEndpointUrl(const QString &issuerEndpointUrl)
void setPolicyId(const QString &policyId)
void setSecurityPolicy(const QString &securityPolicy)
void setTokenType(QOpcUaUserTokenPolicy::TokenType tokenType)
QOpcUaUserTokenPolicy::TokenType tokenType() const
QOpcUaUserTokenPolicy &operator=(const QOpcUaUserTokenPolicy &rhs)
bool operator==(const QOpcUaUserTokenPolicy &rhs) const

Detaillierte Beschreibung

Die User Token Policy enthält Informationen über ein vom Server akzeptiertes User Token.

Dokumentation der Mitgliedstypen

enum QOpcUaUserTokenPolicy::TokenType

KonstanteWertBeschreibung
QOpcUaUserTokenPolicy::Anonymous0Kein Token erforderlich.
QOpcUaUserTokenPolicy::Username1Benutzername und Passwort sind erforderlich.
QOpcUaUserTokenPolicy::Certificate2Ein Client-Zertifikat ist erforderlich.
QOpcUaUserTokenPolicy::IssuedToken3Ein beliebiges von Web Services Security (WS-Security) definiertes Token.

Dokumentation der Mitgliedsfunktion

QOpcUaUserTokenPolicy::QOpcUaUserTokenPolicy()

Standard konstruiert eine Benutzer-Token-Richtlinie ohne Parameter.

QOpcUaUserTokenPolicy::QOpcUaUserTokenPolicy(const QOpcUaUserTokenPolicy &rhs)

Konstruiert eine Benutzer-Token-Richtlinie aus rhs.

QString QOpcUaUserTokenPolicy::issuedTokenType() const

Gibt den URI für den Token-Typ zurück.

Siehe auch setIssuedTokenType().

QString QOpcUaUserTokenPolicy::issuerEndpointUrl() const

Gibt die URL eines Token-ausstellenden Dienstes zurück.

Siehe auch setIssuerEndpointUrl().

QString QOpcUaUserTokenPolicy::policyId() const

Gibt eine vom Server zugewiesene Kennung für diese Richtlinie zurück.

Siehe auch setPolicyId().

QString QOpcUaUserTokenPolicy::securityPolicy() const

Gibt den URI der Sicherheitsrichtlinie zurück, die beim Verschlüsseln oder Signieren des Tokens für ActivateSession erforderlich ist.

Siehe auch setSecurityPolicy().

void QOpcUaUserTokenPolicy::setIssuedTokenType(const QString &issuedTokenType)

Setzt den URI für den Token-Typ auf issuedTokenType.

Siehe auch issuedTokenType().

void QOpcUaUserTokenPolicy::setIssuerEndpointUrl(const QString &issuerEndpointUrl)

Setzt die URL des Token ausstellenden Dienstes auf issuerEndpointUrl.

Siehe auch issuerEndpointUrl().

void QOpcUaUserTokenPolicy::setPolicyId(const QString &policyId)

Setzt den Bezeichner für diese Richtlinie auf policyId.

Siehe auch policyId().

void QOpcUaUserTokenPolicy::setSecurityPolicy(const QString &securityPolicy)

Setzt den URI der Sicherheitsrichtlinie auf securityPolicy.

Siehe auch securityPolicy().

void QOpcUaUserTokenPolicy::setTokenType(QOpcUaUserTokenPolicy::TokenType tokenType)

Setzt den Typ des erforderlichen Benutzeridentitäts-Tokens auf tokenType.

Siehe auch tokenType().

QOpcUaUserTokenPolicy::TokenType QOpcUaUserTokenPolicy::tokenType() const

Gibt den Typ des erforderlichen Benutzeridentitäts-Tokens zurück.

Siehe auch setTokenType().

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

Legt die Werte von rhs in dieser Benutzer-Token-Richtlinie fest.

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

Gibt true zurück, wenn diese Benutzertoken-Richtlinie denselben Wert hat wie rhs.

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