This is the callback method called when authentication data is
required. It either pops up a dialog box to request authentication
data or use text input.
if(isGUI) {
String user = localStrings.getLocalString("login.user", "user");
new GUILoginDialog(user, callbacks);
} else {
new TextLoginDialog(callbacks);
}