class QMqttAuthenticationProperties#

The QMqttAuthenticationProperties class represents configuration options during the authentication process. More

Synopsis#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

Note

Authentication properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See ProtocolVersion for more information.

__init__()#
__init__(arg__1)
Parameters:

arg__1QMqttAuthenticationProperties

authenticationData()#
Return type:

QByteArray

Returns the authentication data

authenticationMethod()#
Return type:

str

Returns the authentication method.

reason()#
Return type:

str

Returns the reason string. The reason string specifies the reason for a disconnect.

See also

setReason()

setAuthenticationData(adata)#
Parameters:

adataQByteArray

Sets the authentication data to adata.

Authentication data can only be used if an authentication method has been specified.

setAuthenticationMethod(method)#
Parameters:

method – str

Sets the authentication method to method.

setReason(r)#
Parameters:

r – str

Sets the reason string to r.

See also

reason()

setUserProperties(user)#
Parameters:

userQMqttUserProperties

Sets the user properties to user.

See also

userProperties()

userProperties()#
Return type:

QMqttUserProperties

Returns the user properties.