An error occurs when defining the CarriedKeyName of an encrypted key. This name should be defined as <xenc:CarriedKeyName mlns:xenc="http://www.w3.org/2001/04/xmlenc#">My Carried Key</xenc:CarriedKeyName> but the value "My Carried Key" is added directly to the root of the <xenc:EncryptedKey /> element
Created attachment 15814 [details] Sample of crriedkeyname definition (use the BouncyCastle provider) Performing the main() method will produce a "encryptedInfo.xml" file containing an "EncryptedData" element with the problem defined
Created attachment 15815 [details] definition of the toElement() method of the EncryptedKeyImpl This file contains a definition of the toElement() method of the EncryptedKeyImpl private class defined in the org.apache.xml.security.encryption.XMLCipher class
Closing old bugs.