开发者

Is it possible to provide a username/password for authentication with the WMQTT java implementation?

I am currently using IBM's java implementation of WMQTT (found here) to connect to a broker on my server, and I am able to connect my application successfully. However, I have not been able to figure out how to supply a username/password for authentication.

The MqttClient and IMqttClient classes don't seem to take a password argument, and I have looked through the source for wmqtt.jar, and still can't find anything that expects a password.

Is it possible to connect开发者_Go百科 with a username/password using WMQTT? I keep finding documentation that it is, but no reference on how to do it in practice using the java implementation.


I believe the situation is that MQTT v3.1 (published 2010) added username/pw auth to the connect() method, but you're using IA92 which predated that, and the Java client there doesn't offer that capability.

You may want to see whether the alternative non-IBM Java client MeQanTT works with auth - https://github.com/AlbinTheander/MeQanTT (I've not checked)

I'll definitely ask folks internally to check whether there are plans to release an MQTT 3.1-compatible Java client - I know that WebSphere MQ Telemetry (commercial product from IBM) does provide that but I don't believe the IA92 SupportPac has been updated to that level right now. Watch This Space!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜