MqttAuthenticateVariableHeader class

The variable Header of the authentication message contains the following fields in the order: authenticate reason code and properties.

Implemented types

Constructors

MqttAuthenticateVariableHeader(MqttHeader? header)
Initializes a new instance of the MqttAuthenticateVariableHeader class.
MqttAuthenticateVariableHeader.fromByteBuffer(MqttHeader? header, MqttByteBuffer variableHeaderStream)
Initializes a new instance of the MqttAuthenticateVariableHeader class.

Properties

authenticationData ↔ Uint8Buffer
getter/setter pair
authenticationMethod String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
Standard header
getter/setter pair
isValid bool
Is valid. Reason code must be set and authentication method must be assigned.
no setter
length int
The length of the variable header as received. To get the write length usegetWriteLength.
no setteroverride
reasonCode MqttAuthenticateReasonCode?
Reason code
getter/setter pair
reasonString String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userProperty List<MqttUserProperty>
getter/setter pair

Methods

getWriteLength() int
Gets the length of the write data when WriteTo will be called.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFrom(MqttByteBuffer variableHeaderStream) → void
Creates a variable header from the specified header stream.
override
readReasonCode(MqttByteBuffer stream) → void
Reason code.
toString() String
A string representation of this object.
override
writeReasonCode(MqttByteBuffer stream) → void
Reason code.
writeTo(MqttByteBuffer variableHeaderStream) → void
Writes the variable header to the supplied stream.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited