Before logging in (i.e. authenticate) to the server the connection must be connected. It is possible to log in without sending an initial available presence by using {@link ConnectionConfiguration#setSendPresence(boolean)}. If this connection is not interested in loading its roster upon login then use {@link ConnectionConfiguration#setRosterLoadedAtLogin(boolean)}. Finally, if you want to not pass a password and instead use a more advanced mechanism while using SASL then you may be interested in using {@link ConnectionConfiguration#setCallbackHandler(javax.security.auth.callback.CallbackHandler)}. For more advanced login settings see {@link ConnectionConfiguration}. @param username the username. @param password the password or null if using a CallbackHandler. @throws XMPPException if an error occurs.
|
|