Regarding newline in xmlsec signature:

xml-sec uses the Java system property

 org.apache.xml.security.ignoreLineBreaks=false

to control the use of newlines.

Regards,
Werner


Colm O hEigeartaigh (JIRA) schrieb:
     [ 
https://issues.apache.org/jira/browse/WSS-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh updated WSS-91:
-----------------------------------

    Affects Version/s: 1.5.4
        Fix Version/s: 1.5.5


WSSecurityUtil#prependChildElement and appendChildElement have code like so:

 Node whitespaceText = doc.createTextNode("\n");
 parent.appendChild(whitespaceText);

I'll fix this shortly. AFAIK xml-sec adds in newlines for the signature though, 
so you won't get a newline free security header in every circumstance.

carriage return/line feed in the security header
------------------------------------------------

                Key: WSS-91
                URL: https://issues.apache.org/jira/browse/WSS-91
            Project: WSS4J
         Issue Type: Wish
   Affects Versions: 1.5.4
           Reporter: Abdelaziz Samari
           Assignee: Colm O hEigeartaigh
            Fix For: 1.5.5


Hi All,
i have the problem that my soap message my not contain carriage return/line feed characters. So my question/wish is how to insert a security header without such characters.
Thanks for any help.



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscr...@ws.apache.org
For additional commands, e-mail: wss4j-dev-h...@ws.apache.org

Reply via email to