0 Replies Latest reply on Jan 4, 2008 7:19 AM by jalaja

    how to get password in handler

    jalaja

      hi

      i am using jax-ws handlers,i have set username and paddword property in client side

      Map context = ((BindingProvider) hello).getRequestContext();

      context.put(BindingProvider.USERNAME_PROPERTY, "user");
      context.put(BindingProvider.PASSWORD_PROPERTY, "pass");


      in the handler i want to access username and password

      i am able to get username


      public boolean handleMessage(MessageContext context) {


      javax.servlet.http.HttpServletRequest httpServletRequest = ((javax.servlet.http.HttpServletRequest)context.get(MessageContext.SERVLET_REQUEST));
      System.out.println("user name"+httpServletRequest.getRemoteUser());
      System.out.println("principle"+httpServletRequest.getUserPrincipal());
      return true;
      }

      i am getting fallowing output from the handler

      user name user
      user username="user" password="pass" roles="basicUser"

      but i need password alone ....

      how to get password alone...which property i have to use