powered by Jive Software

SSLXMPPConnection class

Please move it to a correct group if this not an appropriate group for this question.

I downloaded Smack API 3.1.0 and tried to use SSLXMPPConnection class. This class was not found in import org.jivesoftware.smack package. I Googled for SSLXMPPConnection and the first result I got was an javadoc API documentation for this class that indicated that the full name of this class is org.jivesoftware.sparkimpl.settings.SSLXMPPConnection. I could not find this package in Smack API. What exactly do I need to do to be able to use this class. Where is it?
Preferences.patch.zip (1048 Bytes)

You can move this thread yourself (see the menu block on the right). I think you should move it to Developers > Smack forum.

See my patch at http://www.igniterealtime.org/community/message/193065#193065

Also: You probably want to vote for the Bug

Here is a short code snippet, showing how to use the patched smack with legacy SSL:

ConnectionConfiguration cfg = new ConnectionConfiguration("your.server.org", 5223);
cfg.setSecurityMode(ConnectionConfiguration.SecurityMode.legacy);
cfg.setDebuggerEnabled(true);
/* More connection setup ... */
XMPPConnection con = new XMPPConnection(cfg);
con.connect();
/* ... */

Cheers

-Fritz