The QMqttAuthenticationProperties class represents configuration options during the authentication process. More...
Header: | #include <QMqttAuthenticationProperties> |
qmake: | QT += mqtt |
Since: | Qt 5.12 |
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 |
Note: Authentication properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion for more information.
Returns the authentication data
See also setAuthenticationData().
Returns the authentication method.
See also setAuthenticationMethod().
Returns the reason string. The reason string specifies the reason for a disconnect.
See also setReason().
Sets the authentication data to adata.
Authentication data can only be used if an authentication method has been specified.
See also authenticationData() and authenticationMethod().
Sets the authentication method to method.
See also authenticationMethod().
Sets the reason string to r.
See also reason().
Sets the user properties to user.
See also userProperties().
Returns the user properties.
See also setUserProperties().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qmqttauthenticationproperties.html