I have written my own callback handler, MD5UserNamePasswordCallbackHandler,  that 
handles  TextInputCallbacks.  When I logon to the app server this handler is invoked.  
Later when a remote datasource is accessed via a session bean the connection 
information is renedered through another login module.  Within this module I create a 
TextInputCallback and pass it to the handler that is passed in the initialization of 
the login module.  It seems that by the time the callback handler reaches the second 
login module it is wrapped as 
javax.security.auth.login.LoginContext$SecureCallbackHandler and when I pass the 
callback to this handler it doesn't know how to handle a TextInputCallback?  I want to 
use the callback to prompt the user to input username and password for the remote 
database connection.  How do I cast the handler back to the initial callback handler 
that knows how to handle the callback?

Thanks
Jerry

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838539#3838539

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838539


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to