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 <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
9 <constructor-arg value="true" type="boolean" />
12 <bean id="shibboleth.LogbackLogging" class="edu.internet2.middleware.shibboleth.common.log.LogbackLoggingService" depends-on="shibboleth.TaskTimer">
13 <constructor-arg ref="shibboleth.TaskTimer" />
14 <constructor-arg value="$IDP_HOME$/conf/logging.xml" />
15 <constructor-arg value="600000" />
18 <!-- Spring configuration file that boostraps OpenSAML -->
19 <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean" depends-on="shibboleth.LogbackLogging">
22 <bean id="shibMetadataExtensions" class="org.opensaml.util.resource.ClasspathResource">
23 <constructor-arg value="/shibboleth-saml-ext-config.xml" />
29 <bean id="shibboleth.IdGenerator" class="org.opensaml.common.impl.SecureRandomIdentifierGenerator" depends-on="shibboleth.LogbackLogging">
30 <constructor-arg value="SHA1PRNG" />
33 <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" depends-on="shibboleth.LogbackLogging">
34 <property name="velocityProperties">
36 <prop key="resource.loader">classpath, string</prop>
37 <prop key="classpath.resource.loader.class">
38 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
40 <prop key="string.resource.loader.class">
41 org.apache.velocity.runtime.resource.loader.StringResourceLoader
47 <bean id="shibboleth.TemplateEngine"
48 class="edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.TemplateEngine"
49 depends-on="shibboleth.LogbackLogging">
50 <constructor-arg ref="shibboleth.VelocityEngine" />
53 <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool" depends-on="shibboleth.LogbackLogging">
54 <property name="maxPoolSize" value="50" />
55 <property name="createBuildersAtPoolLimit" value="true" />
56 <property name="coalescing" value="true" />
57 <property name="ignoreComments" value="true" />
58 <property name="ignoreElementContentWhitespace" value="true" />
59 <property name="namespaceAware" value="true" />
62 <bean id="shibboleth.StorageService" class="org.opensaml.util.storage.MapBasedStorageService" depends-on="shibboleth.LogbackLogging" />
64 <bean id="shibboleth.StorageServiceSweeper" class="org.opensaml.util.storage.ExpiringObjectStorageServiceSweeper" depends-on="shibboleth.LogbackLogging">
65 <constructor-arg ref="shibboleth.TaskTimer" />
66 <constructor-arg ref="shibboleth.StorageService" />
67 <constructor-arg value="600000" type="long" />
70 <bean id="shibboleth.SessionManager"
71 class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl"
72 depends-on="shibboleth.LogbackLogging">
73 <constructor-arg ref="shibboleth.StorageService" />
74 <constructor-arg value="1800000" type="long" />
77 <bean id="shibboleth.ArtifactMap" class="org.opensaml.common.binding.artifact.BasicSAMLArtifactMap" depends-on="shibboleth.LogbackLogging">
78 <constructor-arg ref="shibboleth.StorageService" />
79 <constructor-arg type="long" value="300000" />
82 <bean id="shibboleth.ReplayCache" class="org.opensaml.util.storage.ReplayCache" depends-on="shibboleth.LogbackLogging">
83 <constructor-arg ref="shibboleth.StorageService" />
84 <constructor-arg type="long" value="300000" />
87 <util:map id="shibboleth.MessageDecoders">
90 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
92 <bean id="shibboleth.SAML2HttpPostSimpleSignDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostSimpleSignDecoder">
93 <constructor-arg ref="shibboleth.ParserPool" />
98 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
100 <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
101 <constructor-arg ref="shibboleth.ParserPool" />
106 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
108 <bean id="shibboleth.SAML2HttpRedirectDecoder"
109 class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoder">
110 <constructor-arg ref="shibboleth.ParserPool" />
115 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
117 <bean id="shibboleth.SAML2HTTPArtifactDecoder"
118 class="org.opensaml.saml2.binding.decoding.HTTPArtifactDecoder">
119 <constructor-arg ref="shibboleth.ParserPool" />
124 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
126 <bean id="shibboleth.SAML2HttpSoap11Decoder"
127 class="org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder">
128 <constructor-arg ref="shibboleth.ParserPool" />
133 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
135 <bean id="shibboleth.SAML1HttpPostDecoder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoder">
136 <constructor-arg ref="shibboleth.ArtifactMap" />
137 <constructor-arg ref="shibboleth.ParserPool" />
142 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
144 <bean id="shibboleth.SAML1HttpSoap11Decoder"
145 class="org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder">
146 <constructor-arg ref="shibboleth.ArtifactMap" />
147 <constructor-arg ref="shibboleth.ParserPool" />
152 <value>urn:mace:shibboleth:1.0:profiles:AuthnRequest</value>
154 <bean id="shibboleth.ShibbolethSSODecoder"
155 class="edu.internet2.middleware.shibboleth.idp.profile.saml1.ShibbolethSSODecoder">
160 <util:map id="shibboleth.MessageEncoders">
163 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
165 <bean id="shibboleth.SAML2HttpPostSimpleSignEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostSimpleSignEncoder">
166 <constructor-arg ref="shibboleth.VelocityEngine" />
167 <constructor-arg value="/templates/saml2-post-simplesign-binding.vm" />
172 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
174 <bean id="shibboleth.SAML2HttpPostEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoder">
175 <constructor-arg ref="shibboleth.VelocityEngine" />
176 <constructor-arg value="/templates/saml2-post-binding.vm" />
181 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
183 <bean id="shibboleth.SAML2HttpRedirectEncoder"
184 class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder" />
188 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
190 <bean id="shibboleth.SAML2HTTPArtifactEncoder"
191 class="org.opensaml.saml2.binding.encoding.HTTPArtifactEncoder">
192 <constructor-arg ref="shibboleth.ArtifactMap" />
193 <constructor-arg ref="shibboleth.VelocityEngine" />
194 <constructor-arg value="/templates/saml2-post-artifact-binding.vm" />
199 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
201 <bean id="shibboleth.SAML2HttpSoap11Encoder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder" />
205 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
207 <bean id="shibboleth.SAML1HttpPostEncoder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoder">
208 <constructor-arg ref="shibboleth.VelocityEngine" />
209 <constructor-arg value="/templates/saml1-post-binding.vm" />
214 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
216 <bean id="shibboleth.SAML1HttpArtifactEncoder"
217 class="org.opensaml.saml1.binding.encoding.HTTPArtifactEncoder">
218 <constructor-arg ref="shibboleth.ArtifactMap" />
223 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
225 <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder"
226 class="org.opensaml.saml1.binding.encoding.HTTPSOAP11Encoder" />
230 <bean id="shibboleth.SAML1AttributeAuthority"
231 class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML1AttributeAuthority" depends-on="shibboleth.LogbackLogging">
232 <constructor-arg ref="shibboleth.AttributeResolver" />
233 <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
236 <bean id="shibboleth.SAML2AttributeAuthority"
237 class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML2AttributeAuthority" depends-on="shibboleth.LogbackLogging">
238 <constructor-arg ref="shibboleth.AttributeResolver" />
239 <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
242 <bean id="shibboleth.ServletAttributeExporter"
243 class="org.springframework.web.context.support.ServletContextAttributeExporter" depends-on="shibboleth.LogbackLogging">
244 <property name="attributes">
248 <value>handlerManager</value>
250 <ref bean="shibboleth.HandlerManager" />
254 <value>sessionManager</value>
256 <ref bean="shibboleth.SessionManager" />