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 usernamepassword
- MQTT client passwordpublic MqttAuth(JsonObject json)
json
- the JSONpublic String getUsername()
public String getPassword()
public JsonObject toJson()
Copyright © 2021 Eclipse. All rights reserved.