[jboss-dev-forums] [Design of JBoss Web Services] - Re: JAXWS and Username Token

thomas.diesler@jboss.com do-not-reply at jboss.com
Wed Jul 25 06:40:12 EDT 2007


In WSSecurityDispatcher is see


  |       if (operationConfig.getUsername() != null)
  |       {
  |          Object user = ctx.get(Stub.USERNAME_PROPERTY);
  |          Object pass = ctx.get(Stub.PASSWORD_PROPERTY);
  | 
  |          if (user != null && pass != null)
  |          {
  |             operations.add(new OperationDescription<EncodingOperation>(SendUsernameOperation.class, null, user.toString(), pass.toString(), null));
  |             ctx.put(StubExt.PROPERTY_AUTH_TYPE, StubExt.PROPERTY_AUTH_TYPE_WSSE);
  |          }
  |       }
  | 

which indeed only processes the jaxrpc stub properties.

More generally, StubExt needs to be refactored such that it applies to both jaxrpc and jaxws.

Could you please create 

org.jboss.test.ws.jaxws.samples.wssecurity.SimpleUsernameTestCase


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

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



More information about the jboss-dev-forums mailing list