Package io.vertx.mqtt

Class MqttAuth


  • public class MqttAuth
    extends Object
    MQTT authentication information
    • Constructor Detail

      • MqttAuth

        public MqttAuth​(String username,
                        String password)
        Constructor
        Parameters:
        username - MQTT client username
        password - 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