Package io.vertx.mqtt
Class MqttAuth
- java.lang.Object
-
- io.vertx.mqtt.MqttAuth
-
public class MqttAuth extends Object
MQTT authentication information
-
-
Constructor Summary
Constructors Constructor Description MqttAuth(JsonObject json)
Create instance from JSONMqttAuth(String username, String password)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword()
String
getUsername()
JsonObject
toJson()
Convert instance in JSON
-
-
-
Constructor Detail
-
MqttAuth
public MqttAuth(String username, String password)
Constructor- Parameters:
username
- MQTT client usernamepassword
- MQTT client password
-
MqttAuth
public MqttAuth(JsonObject json)
Create instance from JSON- Parameters:
json
- the JSON
-
-
Method Detail
-
getUsername
public String getUsername()
- Returns:
- the username provided by the remote MQTT client
-
getPassword
public String getPassword()
- Returns:
- the password provided by the remote MQTT client
-
toJson
public JsonObject toJson()
Convert instance in JSON- Returns:
- JSON representation
-
-