Skip to content

Wss4jSecurityInterceptor, don't remove Security Header. [SWS-884] #960

@gregturn

Description

@gregturn

Jimmy Selgen Nielsen opened SWS-884 and commented

When Wss4jSecurityInterceptor.validateMessage successfully validates an incoming message, it automatically removes the Security element from the SOAP header.

It would be nice to have an option to disable this functionality, so that the Security Element is left intact, so that the elements contained within (mainly X.509 certificates) can be accessed later on.

There's one line of code to "change" - Wss4jSecurityInterceptor.java:634:
soapMessage.getEnvelope().getHeader().removeHeaderElement(WS_SECURITY_NAME);


Affects: 2.2.0.RELEASE

Referenced from: commits 25408a7, 4ce9e67

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions