DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38585>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38585 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2006-03-14 19:10 ------- This is technically not a bug, but it is a subtle problem that probably should be addressed in a better way. In your test program, you should actually use the keyCipher to create the ReferenceList and not the xmlCipher: < ReferenceList refList = xmlCipher.createReferenceList( ReferenceList.DATA_REFERENCE ); --- > ReferenceList refList = keyCipher.createReferenceList( ReferenceList.DATA_REFERENCE ); This is because there is no context document associated with the xmlCipher object at the time that you create and marshal the ReferenceList. But there is one associated with the keyCipher object. The problem with using xmlCipher occurs when you add the EncryptedKey to the KeyInfo object which marshals it to an element, but there is no context document to create the element. The KeyInfo class is part of the signature packages and these classes are a little different with respect to marshalling - they marshal as you add objects whereas with the encryption classes marshalling is triggered at the end when you encrypt data. I'm going to mark this as INVALID for now. If anyone thinks of a better way to help users avoid this problem, let me know or open an RFE. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
