[java-shib-idp2 COMMIT] /branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPP...

noreply at shibboleth.net noreply at shibboleth.net
Fri Mar 8 14:36:50 EST 2013


Author: scantor
Date: Fri Mar  8 14:36:50 2013
New Revision: 3150

URL: http://svn.shibboleth.net/view/java-shib-idp2?rev=3150&view=rev
Log:
Tell the SOAP decoder we understand ChannelBindings SOAP header.

Modified:
    branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java

Modified: branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java
URL: http://svn.shibboleth.net/view/java-shib-idp2/branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java?rev=3150&r1=3149&r2=3150&view=diff
==============================================================================
--- branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java (original)
+++ branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java Fri Mar  8 14:36:50 2013
@@ -31,6 +31,7 @@
 import org.opensaml.common.SAMLObjectBuilder;
 import org.opensaml.common.binding.decoding.SAMLMessageDecoder;
 import org.opensaml.common.xml.SAMLConstants;
+import org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder;
 import org.opensaml.saml2.binding.decoding.HandlerChainAwareHTTPSOAP11Decoder;
 import org.opensaml.saml2.binding.encoding.HandlerChainAwareHTTPSOAP11Encoder;
 import org.opensaml.saml2.common.Extensions;
@@ -170,6 +171,8 @@
     /** Initialize the profile handler. */
     public void initialize() {
         messageDecoder = new HandlerChainAwareHTTPSOAP11Decoder();
+        ((HTTPSOAP11Decoder) messageDecoder).getUnderstoodHeaders().add(ChannelBindings.DEFAULT_ELEMENT_NAME);
+        
         messageEncoder = new HandlerChainAwareHTTPSOAP11Encoder();
         ((HandlerChainAwareHTTPSOAP11Encoder) messageEncoder).setNotConfidential(true);
         



More information about the commits mailing list