Author: werner
Date: Tue Sep 6 05:59:19 2005
New Revision: 278992
URL: http://svn.apache.org/viewcvs?rev=278992&view=rev
Log:
First iplementation of the SignatureCOnfirmation feature of WSS 1.1.
Modified:
webservices/wss4j/trunk/src/org/apache/ws/axis/security/WSDoAllReceiver.java
Modified:
webservices/wss4j/trunk/src/org/apache/ws/axis/security/WSDoAllReceiver.java
URL:
http://svn.apache.org/viewcvs/webservices/wss4j/trunk/src/org/apache/ws/axis/security/WSDoAllReceiver.java?rev=278992&r1=278991&r2=278992&view=diff
==============================================================================
---
webservices/wss4j/trunk/src/org/apache/ws/axis/security/WSDoAllReceiver.java
(original)
+++
webservices/wss4j/trunk/src/org/apache/ws/axis/security/WSDoAllReceiver.java
Tue Sep 6 05:59:19 2005
@@ -297,20 +297,11 @@
/*
* now check the security actions: do they match, in right order?
*/
- int resultActions = wsResult.size();
- int size = actions.size();
- if (size != resultActions) {
+ if (!checkReceiverResults(wsResult, actions)) {
throw new AxisFault(
- "WSDoAllReceiver: security processing failed (actions
number mismatch)");
+ "WSDoAllReceiver: security processing failed (actions
mismatch)");
+
}
- for (int i = 0; i < size; i++) {
- if (((Integer) actions.get(i)).intValue() !=
((WSSecurityEngineResult) wsResult
- .get(i)).getAction()) {
- throw new AxisFault(
- "WSDoAllReceiver: security processing failed
(actions mismatch)");
- }
- }
-
/*
* All ok up to this point. Now construct and setup the security
* result structure. The service may fetch this and check it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]