Skip to content

Add setOptionalSecurementSignatureParts to Wss4jSecurityInterceptor [SWS-1032] #1101

@gregturn

Description

@gregturn

Paul Visser opened SWS-1032 and commented

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.


Affects: 3.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions