"device did not provide credentials in CONNECT packet")); } else if (auth.getUsername() == null || auth.getPassword() == null) { .put("username", auth.getUsername()) .put("password", auth.getPassword()));
/** * @return the password provided by the remote MQTT client */ public String password() { String ret = delegate.password(); return ret; }
/** * @return the username provided by the remote MQTT client */ public String userName() { String ret = delegate.userName(); return ret; }
new MqttAuth( msg.payload().userName(), msg.payload().password()) : null;
public static java.util.Map<String, Object> auth(io.vertx.mqtt.MqttEndpoint j_receiver) { return j_receiver.auth() != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.auth().toJson()) : null; } public static java.util.Map<String, Object> will(io.vertx.mqtt.MqttEndpoint j_receiver) {
if (endpoint.auth().getUsername() == null || endpoint.auth().getPassword() == null) { return Future.failedFuture(new ClientErrorException( HttpURLConnection.HTTP_UNAUTHORIZED, .create(endpoint.auth().getUsername(), endpoint.auth().getPassword(), getConfig().isSingleTenant());
new MqttAuth( msg.payload().userName(), msg.payload().password()) : null;
(endpoint.auth().getUsername().equals(MQTT_USERNAME) && endpoint.auth().getPassword().equals(MQTT_PASSWORD)) ? MqttConnectReturnCode.CONNECTION_ACCEPTED : MqttConnectReturnCode.CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD;
(endpoint.auth().getUsername().equals(MQTT_USERNAME) && endpoint.auth().getPassword().equals(MQTT_PASSWORD)) ? MqttConnectReturnCode.CONNECTION_ACCEPTED : MqttConnectReturnCode.CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD;