QMqttAuthenticationProperties Class
Die Klasse QMqttAuthenticationProperties stellt Konfigurationsoptionen während des Authentifizierungsprozesses dar. Mehr...
Kopfzeile: | #include <QMqttAuthenticationProperties> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
qmake: | QT += mqtt |
Öffentliche Funktionen
QByteArray | authenticationData() const |
QString | authenticationMethod() const |
QString | reason() const |
void | setAuthenticationData(const QByteArray &adata) |
void | setAuthenticationMethod(const QString &method) |
void | setReason(const QString &r) |
void | setUserProperties(const QMqttUserProperties &user) |
QMqttUserProperties | userProperties() const |
Detaillierte Beschreibung
Hinweis: Authentifizierungseigenschaften sind Teil der MQTT 5.0-Spezifikation und können nicht verwendet werden, wenn eine Verbindung mit einer niedrigeren Protokollebene hergestellt wird. Siehe QMqttClient::ProtocolVersion für weitere Informationen.
Dokumentation der Mitgliedsfunktionen
QByteArray QMqttAuthenticationProperties::authenticationData() const
Gibt die Authentifizierungsdaten zurück
Siehe auch setAuthenticationData().
QString QMqttAuthenticationProperties::authenticationMethod() const
Gibt die Authentifizierungsmethode zurück.
Siehe auch setAuthenticationMethod().
QString QMqttAuthenticationProperties::reason() const
Gibt die Grundzeichenkette zurück. Die Grundzeichenkette gibt den Grund für einen Verbindungsabbruch an.
Siehe auch setReason().
void QMqttAuthenticationProperties::setAuthenticationData(const QByteArray &adata)
Setzt die Authentifizierungsdaten auf adata.
Die Authentifizierungsdaten können nur verwendet werden, wenn eine Authentifizierungsmethode angegeben wurde.
Siehe auch authenticationData() und authenticationMethod().
void QMqttAuthenticationProperties::setAuthenticationMethod(const QString &method)
Setzt die Authentifizierungsmethode auf method.
Siehe auch authenticationMethod().
void QMqttAuthenticationProperties::setReason(const QString &r)
Setzt die Grundzeichenkette auf r.
Siehe auch reason().
void QMqttAuthenticationProperties::setUserProperties(const QMqttUserProperties &user)
Setzt die Benutzereigenschaften auf user.
Siehe auch userProperties().
QMqttUserProperties QMqttAuthenticationProperties::userProperties() const
Gibt die Benutzereigenschaften zurück.
Siehe auch setUserProperties().
© 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.