Bug 35917 - Error in CarriedKeyNameDefinition EncryptedKeyImpl
Summary: Error in CarriedKeyNameDefinition EncryptedKeyImpl
Status: CLOSED FIXED
Alias: None
Product: Security - Now in JIRA
Classification: Unclassified
Component: Encryption (show other bugs)
Version: Java 1.2.1
Hardware: Other Windows XP
: P2 normal
Target Milestone: ---
Assignee: XML Security Developers Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2005-07-28 17:00 UTC by Julien Taupin
Modified: 2006-08-06 11:31 UTC (History)
0 users



Attachments
Sample of crriedkeyname definition (use the BouncyCastle provider) (7.14 KB, text/plain)
2005-07-28 17:03 UTC, Julien Taupin
Details
definition of the toElement() method of the EncryptedKeyImpl (2.57 KB, patch)
2005-07-28 17:07 UTC, Julien Taupin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Taupin 2005-07-28 17:00:31 UTC
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
Comment 1 Julien Taupin 2005-07-28 17:03:08 UTC
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
Comment 2 Julien Taupin 2005-07-28 17:07:59 UTC
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
Comment 3 Raul Benito 2006-08-06 18:31:55 UTC
Closing old bugs.