Retrive this information from request, and pass it to i.e. CallbackHandler

i.e
CallbackHandler handler = new YourCallbackHandler(username, password, ip);
Auhentication.login(handler);

You have to modify of course YourCallbackHandler