Hi! I made a new subclass of XMPPConnection that uses SSL/TLS but allows you to pass in a X509Certificate for verification. I wrote it to do some server cert checking, if the cert is not signed by one of the CA certs known to Java.
As a bonus, it lets you specify the hostname (or IP) for the socket connection separately from the XMPP-level hostname.
It requires XMPPConnection’'s constructor to be public, though - unless you fold this into the class.
Get it at: