1 <?xml version="1.0" encoding="UTF-8"?>
3 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:util="http://www.springframework.org/schema/util"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
6 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
8 <!-- Spring configuration file that boostraps OpenSAML -->
9 <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean"
13 <bean id="shibMetadataExtensions" class="org.opensaml.util.resource.ClasspathResource">
14 <constructor-arg value="/shibboleth-metadata-ext-config.xml" />
20 <bean id="shibboleth.IdGenerator" class="org.opensaml.common.impl.SecureRandomIdentifierGenerator">
21 <constructor-arg value="SHA1PRNG" />
24 <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
25 <property name="velocityProperties">
27 <prop key="resource.loader">classpath, string</prop>
28 <prop key="classpath.resource.loader.class">
29 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
31 <prop key="string.resource.loader.class">
32 org.apache.velocity.runtime.resource.loader.StringResourceLoader
38 <bean id="shibboleth.TemplateEngine"
39 class="edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.TemplateEngine">
40 <constructor-arg ref="shibboleth.VelocityEngine" />
43 <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
44 <constructor-arg value="true" type="boolean" />
47 <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool">
48 <property name="maxPoolSize" value="50" />
49 <property name="createBuildersAtPoolLimit" value="true" />
50 <property name="coalescing" value="true" />
51 <property name="ignoreComments" value="true" />
52 <property name="ignoreElementContentWhitespace" value="true" />
53 <property name="namespaceAware" value="true" />
56 <util:map id="shibboleth.MessageDecoders">
59 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
61 <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
62 <constructor-arg ref="shibboleth.ParserPool" />
67 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
69 <bean id="shibboleth.SAML2HttpRedirectDecoder"
70 class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoder">
71 <constructor-arg ref="shibboleth.ParserPool" />
76 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
78 <bean id="shibboleth.SAML2HTTPArtifactDecoder"
79 class="org.opensaml.saml2.binding.decoding.HTTPArtifactDecoder">
80 <constructor-arg ref="shibboleth.ParserPool" />
85 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
87 <bean id="shibboleth.SAML2HttpSoap11Decoder"
88 class="org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder">
89 <constructor-arg ref="shibboleth.ParserPool" />
94 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
96 <bean id="shibboleth.SAML1HttpPostDecoder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoder">
97 <constructor-arg ref="shibboleth.ParserPool" />
102 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
104 <bean id="shibboleth.SAML1HttpArtifactDecoder"
105 class="org.opensaml.saml1.binding.encoding.HTTPArtifactDecoder">
110 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
112 <bean id="shibboleth.SAML1HttpSoap11Decoder"
113 class="org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder">
114 <constructor-arg ref="shibboleth.ParserPool" />
119 <value>urn:mace:shibboleth:1.0:profiles:AuthnRequest</value>
121 <bean id="shibboleth.ShibbolethSSODecoder"
122 class="edu.internet2.middleware.shibboleth.idp.profile.saml1.ShibbolethSSODecoder">
127 <util:map id="shibboleth.MessageEncoders">
130 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
132 <bean id="shibboleth.SAML2HttpPostEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoder">
133 <constructor-arg ref="shibboleth.VelocityEngine" />
134 <constructor-arg value="/templates/saml2-post-binding.vm" />
139 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
141 <bean id="shibboleth.SAML2HttpRedirectEncoder"
142 class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder" />
146 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
148 <bean id="shibboleth.SAML2HTTPArtifactEncoder"
149 class="org.opensaml.saml2.binding.decoding.HTTPArtifactEncoder">
154 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
156 <bean id="shibboleth.SAML2HttpSoap11Encoder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder" />
160 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
162 <bean id="shibboleth.SAML1HttpPostEncoder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoder">
163 <constructor-arg ref="shibboleth.VelocityEngine" />
164 <constructor-arg value="/templates/saml1-post-binding.vm" />
169 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
171 <bean id="shibboleth.SAML1HttpArtifactEncoder"
172 class="org.opensaml.saml1.binding.encoding.HTTPArtifactEncoder">
177 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
179 <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder"
180 class="org.opensaml.saml1.binding.encoding.HTTPSOAP11Encoder" />
184 <bean id="shibboleth.SessionManager"
185 class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl" />
187 <bean id="shibboleth.SAML1AttributeAuthority"
188 class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML1AttributeAuthority">
189 <constructor-arg ref="shibboleth.AttributeResolver" />
190 <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
193 <bean id="shibboleth.SAML2AttributeAuthority"
194 class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML2AttributeAuthority">
195 <constructor-arg ref="shibboleth.AttributeResolver" />
196 <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
199 <bean id="shibboleth.ServletAttributeExporter"
200 class="org.springframework.web.context.support.ServletContextAttributeExporter">
201 <property name="attributes">
205 <value>handlerManager</value>
207 <ref bean="shibboleth.HandlerManager" />
211 <value>sessionManager</value>
213 <ref bean="shibboleth.SessionManager" />