Custom Processors
You can specify custom WSS4J Processor configuration on the WSS4JInInterceptor. To activate this configuration option, one provides a non-WSS4J defined property, wss4j.processor.map, to the WSS4JInInterceptor as shown in the following Spring example. The same configuration can be achieved through the API as well. The key value is an XML qualified name of the WS-Security header element to process with the given processor implementation. The entry values can be a String representing a class name of the processor to instantiate, an Object implementing Processor, or null to disable processing of the given WS-Security header element.
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
...
<!-- This reconfigures the processor implementation that WSS4j
uses to process a WS-Security Signature element. -->
<entry key="wss4j.processor.map">
<map key-type="javax.xml.namespace.QName">
<entry value="my.class">
<key>
<bean class="javax.xml.namespace.QName">
<constructor-arg
value="http://www.w3.org/2000/09/xmldsig#"/>
<constructor-arg value="Signature"/>
</bean>
</key>
</entry>
</map>
</entry>
...
</map>
</constructor-arg>
</bean>