Authenticates the client to Message Feed server. Each client submitting messages to the Message Feed server must authenticate with a name and a password.
core.mfp.Mfp
authenticate
public void authenticate(String user, String password) throws MfpException
user
– The user name of the Message Feed client.password
– Password for the specified user.The authenticate method throws an MfpException
when authentication fails.
Use the MfpException.toString
method to get a textual description of the exception.
import core.mfp.*; ... Mfp mfp = new Mfp("localhost", "12345", 60); mfp.authenticate("user", "passwd"); ... mfp.close(); |