Add support for an explicit set of outgoing bindings
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / config / profile / saml2 / SAML2SSOProfileHandlerBeanDefinitionParser.java
  * limitations under the License.
  */
 
-package edu.internet2.middleware.shibboleth.idp.config.profile;
+package edu.internet2.middleware.shibboleth.idp.config.profile.saml2;
 
 import javax.xml.namespace.QName;
 
 import org.opensaml.xml.util.DatatypeHelper;
+import org.opensaml.xml.util.XMLHelper;
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 import org.w3c.dom.Element;
 
+import edu.internet2.middleware.shibboleth.idp.config.profile.ProfileHandlerNamespaceHandler;
 import edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler;
 
 /**
@@ -44,6 +46,9 @@ public class SAML2SSOProfileHandlerBeanDefinitionParser extends AbstractSAML2Pro
         builder.addConstructorArg(DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null,
                 "authenticationManagerPath")));
 
+        builder.addConstructorArg(XMLHelper.getAttributeValueAsList(config.getAttributeNodeNS(null,
+                "outboundBindingEnumeration")));
+
         builder.addConstructorArg(DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null, "decodingBinding")));
 
         builder.addPropertyReference("securityPolicyFactory", DatatypeHelper.safeTrimOrNullString(config