QMqttAuthenticationProperties Class
QMqttAuthenticationProperties クラスは、認証プロセスにおける設定オプションを表します。詳細...
| ヘッダー: | #include <QMqttAuthenticationProperties> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
| qmake: | QT += mqtt |
パブリック関数
| 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 |
詳細な説明
注: 認証 プロパティは MQTT 5.0 仕様の一部であり、それより低いプロトコルレベルで接続する場合は使用できません。詳細については、QMqttClient::ProtocolVersion を参照してください。
メンバ関数のドキュメント
QByteArray QMqttAuthenticationProperties::authenticationData() const
認証データを返します
setAuthenticationData()も参照してください 。
QString QMqttAuthenticationProperties::authenticationMethod() const
認証メソッドを返します。
setAuthenticationMethod()も参照してください 。
QString QMqttAuthenticationProperties::reason() const
理由文字列を返します。この理由文字列は、接続切断の理由を指定します。
setReason()も参照してください 。
void QMqttAuthenticationProperties::setAuthenticationData(const QByteArray &adata)
認証データを `adata` に設定します。
認証データは、認証方法が指定されている場合にのみ使用できます。
authenticationData() およびauthenticationMethod()も参照してください 。
void QMqttAuthenticationProperties::setAuthenticationMethod(const QString &method)
認証方法を「method 」に設定します。
authenticationMethod()も参照してください 。
void QMqttAuthenticationProperties::setReason(const QString &r)
理由の文字列を「r 」に設定します。
reason()も参照してください 。
void QMqttAuthenticationProperties::setUserProperties(const QMqttUserProperties &user)
ユーザープロパティを「user 」に設定します。
userProperties()も参照してください 。
QMqttUserProperties QMqttAuthenticationProperties::userProperties() const
ユーザーのプロパティを返します。
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.