Skip to content

Commit b87164e

Browse files
author
Tareq Abedrabbo
committed
SWS-515 - Validate WSS headers using new checkReceiverResultsAnyOrder method in WSHandler.
1 parent 5b08998 commit b87164e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ protected boolean checkReceiverResults(Vector wsResult, Vector actions) {
6464
return super.checkReceiverResults(wsResult, actions);
6565
}
6666

67+
protected boolean checkReceiverResultsAnyOrder(Vector wsResult, Vector actions) {
68+
return super.checkReceiverResultsAnyOrder(wsResult, actions);
69+
}
70+
6771
void setOption(String key, String value) {
6872
options.setProperty(key, value);
6973
}

security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ protected void validateMessage(SoapMessage soapMessage, MessageContext messageCo
549549
*/
550550
protected void checkResults(Vector results, Vector validationActionsVector)
551551
throws Wss4jSecurityValidationException {
552-
if (!handler.checkReceiverResults(results, validationActionsVector)) {
552+
if (!handler.checkReceiverResultsAnyOrder(results, validationActionsVector)) {
553553
throw new Wss4jSecurityValidationException("Security processing failed (actions mismatch)");
554554
}
555555
}

0 commit comments

Comments
 (0)