Auf dieser Seite

QMqttAuthenticationProperties Class

Die Klasse „QMqttAuthenticationProperties“ stellt Konfigurationsoptionen für den Authentifizierungsprozess dar. Mehr...

Header: #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

Ausführliche Beschreibung

Hinweis: Authentifizierungseigenschaften sind Teil der MQTT 5.0-Spezifikation und können bei einer Verbindung auf einer niedrigeren Protokollebene nicht verwendet werden. Weitere Informationen finden Sie unter QMqttClient::ProtocolVersion.

Dokumentation zu den 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 Grundangabe als Zeichenfolge zurück. Die Grundangabe gibt den Grund für eine Verbindungsunterbrechung an.

Siehe auch ` setReason()`.

void QMqttAuthenticationProperties::setAuthenticationData(const QByteArray &adata)

Legt die Authentifizierungsdaten auf „ adata “ fest.

Die Authentifizierungsdaten können nur verwendet werden, wenn eine Authentifizierungsmethode angegeben wurde.

Siehe auch authenticationData() und authenticationMethod().

void QMqttAuthenticationProperties::setAuthenticationMethod(const QString &method)

Legt die Authentifizierungsmethode auf „ method “ fest.

Siehe auch authenticationMethod().

void QMqttAuthenticationProperties::setReason(const QString &r)

Setzt die Grundangabe 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()“.

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