Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.5.7
-
None
-
tomcat + axis 1.4 + wss4j 1.5.7
Description
WSSecEncrypt.java below function doesn't define xenc prefix being used. if encryptSymmKey set to false then ReferenceList is the only element which is inserted in soap response.
public Element encryptForInternalRef(Element dataRef, List references)
throws WSSecurityException {
List encDataRefs =
doEncryption(document, symmetricKey, references);
Element referenceList = dataRef;
if (referenceList == null)
createDataRefList(document, referenceList, encDataRefs);
return referenceList;
}
It should call set namespace like createEncryptedKey function (of WSSecEncryptedKey.java) does:
WSSecurityUtil.setNamespace(encryptedKey, WSConstants.ENC_NS, WSConstants.ENC_PREFIX);