I'd like to connect to the palita.net.
But I can't...
config.setSecurityMode(ConnectionConfiguration.SecurityMode.enabled); | |
config.setDebuggerEnabled(true); | |
SSLContext sc = SSLContext.getInstance ("TLSv1.2") ; | |
sc.init (null,null,null) ; | |
config.setCustomSSLContext(sc); |
connection = new XMPPTCPConnection(config); |
connection.connect(); |
It is doesn't work:
Exception in thread "main" org.jivesoftware.smack.SmackException$ConnectionException
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPC onnection.java:431)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:799)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:391)
at tls_connect.TLS_connect.main(TLS_connect.java:72)
Java Result: 1
Pls help, how in 4.0.0-rc2 I have to connect to the server?..