Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Add setOptionalSecurementSignatureParts to Wss4jSecurityInterceptor [SWS-1032] #1101
We are building a SOAP client for a service that requires certain elements to be signed. However not all elements will be available in the request at all times.
Wss4j has the option to set optional signature parts (WSHandlerConstants.OPTIONAL_SIGNATURE_PARTS). However Wss4jSecurityInterceptor does not provide a method to set this option.
We are now working around this by setting the option in the messagecontext in a custom interceptor but this is no ideal solution.
As there is a similar issue for another property mentioned in #1093 I would highly recommend to add a possibility to set Wss4j options directly in the handler instead of having to wait for methods to be added to the Spring interceptor. Otherwise I would suggest making the handler protected instead of private so we could extend the interceptor and add such logic there.