QMqttAuthenticationProperties Class
QMqtt인증프로퍼티 클래스는 인증 프로세스 중 구성 옵션을 나타냅니다. 더 보기...
헤더: | #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.