public class MqttAuth extends Object
| Constructor and Description |
|---|
MqttAuth(JsonObject json)
Create instance from JSON
|
MqttAuth(String username,
String password)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword() |
String |
getUsername() |
JsonObject |
toJson()
Convert instance in JSON
|
public MqttAuth(String username, String password)
username - MQTT client username, or null when not providedpassword - MQTT client password, or null when not providedpublic MqttAuth(JsonObject json)
json - the JSONpublic String getUsername()
null when not providedpublic String getPassword()
null when not providedpublic JsonObject toJson()
Copyright © 2026 Eclipse. All rights reserved.