Announcement Announcement Module
Collapse
No announcement yet.
Wss4jSecurityInterceptor.setSecurementSignaturePar ts not working on header of message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wss4jSecurityInterceptor.setSecurementSignaturePar ts not working on header of message

    Hi,

    I need to sign some parts of the outgoing message header, so I have an Interceptor like so ...

    Wss4jSecurityInterceptor i = new Wss4jSecurityInterceptor();
    ...
    i.setSecurementActions("Signature Encrypt");

    Adding the "{Element}{http://www.w3.org/2005/08/addressing}Action", to sign that header element.

    i.setSecurementSignatureParts("{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body; {Element}{http://www.w3.org/2005/08/addressing}Action");

    Caues this:

    org.apache.ws.security.WSSecurityException: General security error (WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found: http://www.w3.org/2005/08/addressing, Action);

    Can this class sign a header element?
    Or, is it possible that the header element hasn't been created when this interceptor is invoked, if so how do I ensure it it invoked afterward. (It's set with setPostInterceptors)
    Or, am I doing something else stupid.

    Thanks.
Working...
X