You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2014/10/08 12:39:33 UTC

svn commit: r1630066 - /webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java

Author: coheigea
Date: Wed Oct  8 10:39:33 2014
New Revision: 1630066

URL: http://svn.apache.org/r1630066
Log:
[WSS-516] - Change saml AssertionWrapper to setSamlVersion before calling callback handler. Thanks to Jason Pell for the patch

Modified:
    webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java

Modified: webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java?rev=1630066&r1=1630065&r2=1630066&view=diff
==============================================================================
--- webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java (original)
+++ webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java Wed Oct  8 10:39:33 2014
@@ -223,7 +223,10 @@ public class AssertionWrapper {
         // Create the SAML callback that the handler will use to get the required data from the 
         // client application.
         //
-        SAMLCallback[] samlCallbacks = new SAMLCallback[] { new SAMLCallback() };
+        SAMLCallback samlCallback = new SAMLCallback();
+        samlCallback.setSamlVersion(parms.getSAMLVersion());
+        
+        SAMLCallback[] samlCallbacks = new SAMLCallback[] { samlCallback };
 
         try {
             // Get the SAML source data using the currently configured callback implementation.