5 Replies Latest reply on Sep 29, 2011 9:32 PM by hai qing

    How to simulation jaas login with jboss

    hai qing Newbie

      Hi All,

       

      I have a web app in jboss,it's the way logged jaas.  Now , can be through the login from web page.

       

      But, I want to as follows way login the web app in servlet.

       

      LoginContext login=new LoginContext("report",new SimpleCallbackHandle(name,"test"));

                                                        try {

                                                                  login.login();

                                                        } catch (LoginException e) {

                                                                  e.printStackTrace();

                                                        }

       

      Through the above logged, but Jboss containers could not take the user and access information

       

       

      How to use LoginContext logged in servlet with jboss.

       

      any help me! thanks