src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java
public void authenticate(String username, String host, String password)
            throws IOException, XMPPException {
        authenticate(username, host, host, password);
    }
public void authenticate(String username, String host, String password)
            throws IOException, XMPPException {
        authenticate(username, host, host, password);
    }
public void authenticate ( String username , String host , String password ) throws IOException , XMPPException { authenticate ( username , host , host , password ) ; }
Same as {@link #authenticate(String, String, String, String)}, but with
the hostname used as the serviceName.
<p>
Kept for backward compatibility only.

@param username
the username of the user being authenticated.
@param host
the hostname where the user account resides.
@param password
the password for this account.
@throws IOException
If a network error occurs while authenticating.
@throws XMPPException
If a protocol error occurs or the user is not authenticated.
@deprecated Please use
{@link #authenticate(String, String, String, String)}
instead.
Same as { @link #authenticate ( String String String String ) } but with the hostname used as the serviceName . <p > Kept for backward compatibility only .