Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java 1.4.6, Java 1.5.1
-
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.