-
Apr 24th, 2012, 11:29 AM
#1
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules