How to produce XML signature with no whitespaces and line-breaks in Java?

前端 未结 8 1589
情话喂你
情话喂你 2020-12-17 00:51

I work with the brazilian \"Nota Fiscal Eletronica\" project, in which they define a standart way to sign XML documents.

Recently, they started to require that there

8条回答
  •  盖世英雄少女心
    2020-12-17 01:41

    the signature blocks are encoding binary information as Base64, which must follow some formating including line breaks (see http://en.wikipedia.org/wiki/Base64). So you simply can't remove them without alter the information.

    a better way to redure network traffic, is to use comression before sending data.

提交回复
热议问题