[jboss-user] [EJB 3.0] - Re: RolesAllowed causes exception on client with JBoss5

Wolfgang Knauf do-not-reply at jboss.com
Wed Jan 28 10:18:52 EST 2009

Hi Dragan,

actually, you use JAAS on the client side (which is a Java standard), there is not much JBoss specific stuff about this.

To login, you need an implementation of "javax.security.auth.callback.CallbackHandler" (which provides user/password), and perform the authentication using this CallbackHandler:

javax.security.auth.login.LoginContext loginContext = new LoginContext ("...", callbackHandler);
  | loginContext.login();

The JBoss "SecurityClient" is just an implementation of the CallbackHandler interface.

Hope this helps a bit


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

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

More information about the jboss-user mailing list