I am using registration.jar plugin (http://www.igniterealtime.org/projects/openfire/plugins.jsp) plugin to register users at openfire server. This is how the data in the table looks after the registration (using the same plugin):
http://i.stack.imgur.com/LuhAJ.jpg
The password as shown is in the encrypted form. So how do I make the user connect to the openfire server ?
(This snippet is from the official documentation)
Connection connection = new XMPPConnection("server");
connection.connect();
connection.login("mtucker", "password")
Chat chat = connection.getChatManager().createChat("jsmith@jivesoftware.com", new MessageListener() {
public void processMessage(Chat chat, Message message) {
System.out.println("Received message: " + message);
}
});
chat.sendMessage("Howdy!");
What password do I enter in :
connection.login("mtucker", "password");
because the password saved in the database is in the encrypted form.
How do developers write the sign-in code for openfire server ?