Santuario
  1. Santuario
  2. SANTUARIO-301

Missing KeyInfo element when encrypting multiple elements

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Java 1.4.6, Java 1.5.1
    • Fix Version/s: Java 1.4.7, Java 1.5.2
    • Component/s: Java
    • Security Level: Public (Public issues, viewable by everyone)
    • Labels:
      None

      Description

      When encrypting multiple elements using the same XMLCipher, the KeyInfo that was attached to the EncryptedData only appears on the last encrypted element. This is because EncryptedDataImpl.toElement() calls getKeyInfo().getElement() which always returns the same KeyInfo Element. When the KeyInfo is added to the latest EncryptedData, it is reparented and therefore disappears from the previous EncryptedData.

      1. TestBug.java
        2 kB
        Clement Pellerin
      2. TestBug.java
        2 kB
        Clement Pellerin

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Colm O hEigeartaigh
            Reporter:
            Clement Pellerin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development