@DoNotImplement public interface MqttClientIdentifier extends MqttUtf8String
A Client Identifier has the same requirements as an UTF-8 encoded string.
| Modifier and Type | Method and Description |
|---|---|
boolean |
mustBeAllowedByServer()
Checks whether this Client Identifier must be allowed by every MQTT broker according to the MQTT specification.
|
static @NotNull MqttClientIdentifier |
of(@NotNull String string)
Validates and creates a Client Identifier of the given string.
|
containsShouldNotCharacters, toByteBuffercompareTo@NotNull static @NotNull MqttClientIdentifier of(@NotNull @NotNull String string)
of in interface MqttUtf8Stringstring - the string representation of the Client Identifier.IllegalArgumentException - if the string is not a valid Client Identifier.boolean mustBeAllowedByServer()
A Client Identifier must be allowed by every MQTT broker if it is between 1 and 23 characters long and only contains lower or uppercase alphabetical characters or numbers.