I'm using the Java Paho MQTT client libraries to connect to a server via MQTT.
The libraries have support for TLS/SSL using signed certificates for authentication and encryption.
However, If I am just using a username and password for authentication, as below, and not TLS certificates, will my communication still be encrypted? This I am not sure about.
conOpt = new MqttConnectOptions();
conOpt.setUserName("username");
conOpt.setPassword("password");