You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Peter De Maeyer (Jira)" <ji...@apache.org> on 2020/05/01 19:52:00 UTC

[jira] [Created] (SANTUARIO-541) Indent secure XML elements the same way as the unsecured XML

Peter De Maeyer created SANTUARIO-541:
-----------------------------------------

             Summary: Indent secure XML elements the same way as the unsecured XML
                 Key: SANTUARIO-541
                 URL: https://issues.apache.org/jira/browse/SANTUARIO-541
             Project: Santuario
          Issue Type: Improvement
          Components: Java
    Affects Versions: Java 2.1.5
            Reporter: Peter De Maeyer
            Assignee: Colm O hEigeartaigh
             Fix For: Java 2.2.0


Currently, secured XML elements are not indented, even when the unsecured input XML is.
Take for example {{EncryptionCreationTest.testEncryptionIdToSecureSupersedesName}}, which has input:

{code:xml}
<?xml version='1.0'?>
<Root>
  <Branch1 attr1='abc'/>
  <Branch2 attr1='def'/>
</Root>
{code}

and encrypted output:

{code}
<?xml version='1.0' encoding='UTF-8'?><Root>
  <Branch1 attr1="abc"/>
  <xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="G79d19501-544f-403d-831a-f99e5558a102" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><dsig:KeyInfo xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><xenc:EncryptedKey Id="EKb7c2cb54-1548-44cd-978a-be83fa46c707"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes192"/><xenc:CipherData><xenc:CipherValue>D5c97seyBtid8tGxwjKEzz+xpKt1oCwk</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></dsig:KeyInfo><xenc:CipherData><xenc:CipherValue>jWJS/BLcC03RlyqxKYUXnK7zuqvdO8Mu5T9OPIItvmHjeHLEWf9GZrHZMukDFviZ&#xd;
</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData>
</Root>
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)