cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huidong <>
Subject Re: An invalid security token was provided (Bad UsernameToken Values)
Date Thu, 04 Feb 2010 22:48:30 GMT

i am using the latest 2.2.6. can you elaborate how to pass WSconfig object?
my configuration is something like:

      <bean class="">
            <entry key="action" value="UsernameToken" />
            <entry key="passwordType" value="PasswordText" />                  
            <entry key="passwordCallbackClass"
value="***.ws.impl.PasswordCallback" />
            <entry key="allowNamespaceQualifiedPasswordTypes" value="true"

this way, after i modified WSS4JInInterceptor, it works fine for both
java/.Net clients.

dkulp wrote:
> Well, the code on trunk is a bit different now in that the WSConfig object 
> that is used can be passed in as a property.    Thus, with that, it's much 
> easier.
> One option for you COULD be to do something like:
> WSSConfig.getDefaultWSConfig().setAllowNamespaceQualifiedPasswordTypes(true);
> in some user code or something at startup.  That should set the default
> config 
> object to allow it which would then be used for processsing.
> Dan

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message