There's a little err in the callback class, this one is compiling
public void handle(Callback[] callbacks)
throws java.io.IOException, UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
if (callbacks instanceof NameCallback){
NameCallback nc = (NameCallback)callbacks ;
nc.setName(username);
} else if (callbacks instanceof PasswordCallback) {
PasswordCallback pc = (PasswordCallback)callbacks ;
pc.setPassword(password);
} else {
throw new UnsupportedCallbackException(callbacks ,
"Unrecognized Callback");
}
}
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851382#3851382
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851382
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user