Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-301

Missing KeyInfo element when encrypting multiple elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java 1.4.6, Java 1.5.1
    • Java 1.4.7, Java 1.5.2
    • Java
    • Security Level: Public (Public issues, viewable by everyone)
    • 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.

      Attachments

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

        Activity

          People

            coheigea Colm O hEigeartaigh
            clement_pellerin@ibi.com Clement Pellerin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: