[jboss-user] [Security & JAAS/JBoss] - Re: Custom LoginModule, standalone application, InitialConte

sushilgovind do-not-reply at jboss.com
Mon Oct 20 08:09:32 EDT 2008


You would have to write your own LoginModule and where in your login function you would have to ask to jboss to call you custom callback.

If you custom callback is called HelloCallback the you would have

NameCallback nc = new NameCallback("User name :" , guest); 
PasswordCallback pc = new PasswordCallback("Password :" , false); 
HelloCallback hc = new HelloCallback("Hello:" , "hi"); 
Callback[] callbacks =  {nc,pc,hc};

callbackHandler.handle(callbacks);



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

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



More information about the jboss-user mailing list