makdimka077 / xades4j

Automatically exported from code.google.com/p/xades4j
GNU Lesser General Public License v3.0
0 stars 0 forks source link

base64 encoding of data doesn't break lines #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sign document in XAdES-C form
2. Extend the signature to XAdES-X or XAdES-X-L
3. Try to read output file

What is the expected output? What do you see instead?
Signature shouldn't be in (nearly) one line 30k characters long. Because of 
that, text editors have problem editing or viewing the file

What version of the product are you using? On what operating system?
1.3.0, Linux

Please provide any additional information below.
The solution is to break lines in base64 encoding of certificates and encoded 
time stamps, in similar fashion to output of Apache XML signature library.

Attached is a patch that fixes this issue.

Original issue reported on code.google.com by hubert.k...@gmail.com on 12 Oct 2012 at 12:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by luis.fgoncalv on 13 Oct 2012 at 1:23

GoogleCodeExporter commented 9 years ago
Thanks! This wo'nt solve the problem completely, since the remaining elements 
and content are output in one line. This is motly to be read by a machine, but 
anyway maybe it would also be nice to break line on some other elements, like 
Santuario does. But I could only find the "formatted output" option for JAXB 
marshaller, which will indent all the elements.

Original comment by luis.fgoncalv on 13 Oct 2012 at 1:41