Custom Processors - 8.0

Talend ESB Service Developer Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-11-06

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>