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()も参照してください 。
© 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.