I want to get ContextHandlerCallback in my login module.
I need it to get ContextHandler.

To do this I do this code:


Callback[] callbacks = { new ContextHandlerCallback() };
ContextHandler contextHandler = ((ContextHandlerCallback) callbacks[0])


But after executing this ContextHandler is NULL, and callbacks[0] is instance of javax.security.auth.login.LoginContext$SecureCallb ackHandler

What else I need to do?