Announcement Announcement Module
No announcement yet.
How to set option IS_BSP_COMPLIANT in Wss4jSecurityInterceptor? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set option IS_BSP_COMPLIANT in Wss4jSecurityInterceptor?

    For my web service, I have to set the option IS_BSP_COMPLIANT = false (default is true), because my clients currently do not comply to the BSP standard. I have tried to supply a custom WssConfig object to Wss4jSecurityInterceptor and called setWsiBSPCompliant(false) in the constructor, but that works only for the first request after the system is started!

    There is also a property 'bspCompliant' on the Wss4jSecurityInterceptor, but setting this to false has the same effect.

    I found out that WSS4J sets back the value in WssConfig to true in each WSHandler.doSenderAction() call. WSHandler.doSenderAction asks the Spring Wss4JHandler for the set of options, but the IS_BSP_COMPLIANT option is not among them. If an option is not set in the Handler, the value defaults to true.

    So the question is: How do I set an option for Wss4JHandler that lasts longer than the first request?

    Thank you!
    Last edited by juergene; Apr 9th, 2013, 04:36 AM.