DO NOT REPLY [Bug 48126] New: no way to indent xmldsig elements

View: New views
3 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 48126] New: no way to indent xmldsig elements

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48126

           Summary: no way to indent xmldsig elements
           Product: Security
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Signature
        AssignedTo: security-dev@...
        ReportedBy: wollis@...


There is (probably) no way to indent (format as I wish) XML Signature elments
created through xmldsig Java API.
It would be helpful to have a way to indenting XML output like in
javax.xml.transform TransformerFactory and Transformer classes throgh
tf.setAttribute("indent-number", new Integer(2)) and
t.setOutputProperty(OutputKeys.INDENT, "yes");
Post-creation transformation cannot be used in conjuction with standard
canonicalization methods (CanonicalizationMethod.EXCLUSIVE_WITH_COMMENTS,
CanonicalizationMethod.EXCLUSIVE,
CanonicalizationMethod.INCLUSIVE_WITH_COMMENTS,CanonicalizationMethod.INCLUSIVE),
so there is no way to achive "pretty print".

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48126] no way to indent xmldsig elements

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48126

William Wollis <wollis@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P5

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48126] no way to indent xmldsig elements

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48126

--- Comment #1 from sean.mullan@... 2009-12-04 07:54:03 UTC ---
Yes, we currently don't support this feature. Because pretty-printing after the
signature is generated invalidates the signature, it must be done before the
signature is generated. I'll look into this a bit more to see how difficult it
would be to add.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.