| Author |
Callback Handlers
|
Ed B.
Greenhorn
Joined: Jul 21, 2003
Posts: 9
|
|
Hello All, Is there a way to pass in extra parameters to a custom callback handler and fetch it back in the custom login module? My code is as follows: LoginContext cntx = new LoginContext("test", new MyCallBackHandler(username, password, param1, param2)); MyLoginModule.java: ((MyCallbackHandler)callbackHandler).getParam1() The above call throws a classcastexception because callbackHandler is an instance of SecureCallbackHandler which is an inner class of LoginContext. Is there any other way of accomplishing what I am trying to do here? Thanks in advance.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
|
|
|
"Ed B.", please check your private messages.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Callback Handlers
|
|
|