[jboss-user] [JBossWS] - how to get password in handler

jalaja do-not-reply at jboss.com
Fri Jan 4 07:19:50 EST 2008


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

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

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



More information about the jboss-user mailing list