* dependency, we'll add code to handle the case of unexpected callback handlers with a setObject method.
*/
try {
// Assume that a callback chain will ask for the user before the password
if (!userSet) {
new Reflection(callbacks[i].getClass()).invokeSetterMethodOnTarget("object",
callbacks[i],
this.userId);
userSet = true;
} else if (!passwordSet) {
// Jetty also seems to eschew passing passwords as char arrays
new Reflection(callbacks[i].getClass()).invokeSetterMethodOnTarget("object",
callbacks[i],
new String(this.password));
passwordSet = true;
}
// It worked - need to continue processing the callbacks