https://issues.apache.org/bugzilla/show_bug.cgi?id=46732
Summary: Failed to add more than one child element to
EncryptionMethod.
Product: Security
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Encryption
AssignedTo: [email protected]
ReportedBy: [email protected]
According to the w3c EncryptionMethod element schema the number of parameters
(child elements) is unbounded.
http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#sec-EncryptionMethod
While org.apache.xml.security.encryption.XMLCipher.Factory.EncryptionMethodImpl
implementation places into Element only ONE parameter from the
encryptionMethodInformation List.
org.apache.xml.security.encryption.XMLCipher.Factory.EncryptionMethodImpl {
private List encryptionMethodInformation = null;
...
Element toElement() {
...
if (!encryptionMethodInformation.isEmpty()) {
Iterator itr = encryptionMethodInformation.iterator();
result.appendChild((Element) itr.next());
}
return (result);
}
}
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.