The QMqttAuthenticationProperties class represents configuration options during the authentication process. 更多...
| 頭: | #include <QMqttAuthenticationProperties> |
| qmake: | QT += mqtt |
| Since: | Qt 5.12 |
該類在 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 |
注意: Authentication properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion 瞭解更多信息。
Returns the authentication data
另請參閱 setAuthenticationData ().
Returns the authentication method.
另請參閱 setAuthenticationMethod ().
Returns the reason string. The reason string specifies the reason for a disconnect.
另請參閱 setReason ().
Sets the authentication data to adata .
Authentication data can only be used if an authentication method has been specified.
另請參閱 authenticationData () 和 authenticationMethod ().
Sets the authentication method to method .
另請參閱 authenticationMethod ().
Sets the reason string to r .
另請參閱 reason ().
Sets the user properties to user .
另請參閱 userProperties ().
Returns the user properties.
另請參閱 setUserProperties ().