powered by Jive Software

Different objects for SSL and non-SSL

I don’'t know if this has been mentioned before but Smack has different classes for creating a SSL connection and a non-secure connection. So while creating a client, I faced the problem of using a bool everytime the use of Connection Object was required in order to check whether the connection was SSL or not as the objects are essentially different.

Is there any way to get around this problem or will later versions of Smack have a single class for the connection with maybe some ‘‘setSSL()’’ funtion(just a suggestion) for setting SSL to true?