For the SOAP client I'm implementing the signing of the certificate by using CXF security.
In all provided samples the reference to the passwordCallback class is set in WSS4JOutInterceptor properties.
securityProperties.put(WSHandlerConstants.PW_CALLBACK_CLASS, UTPasswordCallback.class.getName());
client.getOutInterceptors().add(new WSS4JOutInterceptor(securityProperties));
Is there an alternative approach to the WSPasswordCallback? Can I set the password directly?
Found out the solution by setting the password in requestContext:
client.getRequestContext().put("password", "PASSWORD");