WSS4J is usually used with a web services stack such as Apache CXF or Axis. So I would recommend starting with one of these instead. However it should be easy enough to get a basic UsernameToken working on its own - you could look at one of the unit tests here:
https://github.com/apache/ws-wss4j/blob/master/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/UsernameTokenTest.java Colm. On Mon, Jun 22, 2020 at 1:21 PM Gopinath R <[email protected]> wrote: > Hi, > I am creating a java SOAP client using SAAJ APIs. In that we prefer to > user wss4j APIs for implementing WS Security Username token. But I could > not find the WSS4J jars for the version 2.3.0. Could you show the direction > where I could able to download the jar of Version 2.3.0 Also please share > samples for How to implement WS Security Username token with that latest > wss4j 2.3.0 API. > > Regards, > Gopinath R. >
