SWS-515 - Validate WSS headers using new checkReceiverResultsAnyOrder method in WSHandler.

This commit is contained in:
Tareq Abedrabbo
2009-08-18 16:04:39 +00:00
parent 5b08998c9f
commit b87164e258
2 changed files with 5 additions and 1 deletions

View File

@@ -64,6 +64,10 @@ class Wss4jHandler extends WSHandler {
return super.checkReceiverResults(wsResult, actions);
}
protected boolean checkReceiverResultsAnyOrder(Vector wsResult, Vector actions) {
return super.checkReceiverResultsAnyOrder(wsResult, actions);
}
void setOption(String key, String value) {
options.setProperty(key, value);
}

View File

@@ -549,7 +549,7 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl
*/
protected void checkResults(Vector results, Vector validationActionsVector)
throws Wss4jSecurityValidationException {
if (!handler.checkReceiverResults(results, validationActionsVector)) {
if (!handler.checkReceiverResultsAnyOrder(results, validationActionsVector)) {
throw new Wss4jSecurityValidationException("Security processing failed (actions mismatch)");
}
}