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.CacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" />
10 <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
11 <constructor-arg value="true" type="boolean" />
14 <bean id="shibboleth.LogbackLogging" class="edu.internet2.middleware.shibboleth.common.log.LogbackLoggingService" depends-on="shibboleth.TaskTimer">
15 <constructor-arg ref="shibboleth.TaskTimer" />
16 <constructor-arg value="$IDP_HOME$/conf/logging.xml" />
17 <constructor-arg value="600000" />
20 <!-- Spring configuration file that bootstraps OpenSAML -->
21 <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean" depends-on="shibboleth.LogbackLogging">
24 <bean id="shibMetadataExtensions" class="org.opensaml.util.resource.ClasspathResource">
25 <constructor-arg value="/shibboleth-saml-ext-config.xml" />
31 <bean id="shibboleth.IdGenerator" class="org.opensaml.common.impl.SecureRandomIdentifierGenerator" depends-on="shibboleth.LogbackLogging">
32 <constructor-arg value="SHA1PRNG" />
35 <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" depends-on="shibboleth.LogbackLogging">
36 <property name="velocityProperties">
38 <prop key="resource.loader">classpath, string</prop>
39 <prop key="classpath.resource.loader.class">
40 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
42 <prop key="string.resource.loader.class">
43 edu.internet2.middleware.shibboleth.common.util.StringResourceLoader
49 <bean id="shibboleth.TemplateEngine"
50 class="edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.TemplateEngine"
51 depends-on="shibboleth.LogbackLogging">
52 <constructor-arg ref="shibboleth.VelocityEngine" />
55 <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool" depends-on="shibboleth.LogbackLogging">
56 <property name="maxPoolSize" value="100" />
57 <property name="coalescing" value="true" />
58 <property name="ignoreComments" value="true" />
59 <property name="ignoreElementContentWhitespace" value="true" />
60 <property name="namespaceAware" value="true" />
61 <property name="builderAttributes">
65 <value>http://apache.org/xml/properties/security-manager</value>
67 <bean id="shibboleth.XercesSecurityManager" class="org.apache.xerces.util.SecurityManager" />
71 <property name="builderFeatures">
75 <value>http://apache.org/xml/features/disallow-doctype-decl</value>
77 <util:constant static-field="java.lang.Boolean.TRUE"/>
83 <bean id="shibboleth.StorageService" class="edu.internet2.middleware.shibboleth.common.util.EventingMapBasedStorageService" depends-on="shibboleth.LogbackLogging" />
85 <bean id="shibboleth.StorageServiceSweeper" class="org.opensaml.util.storage.ExpiringObjectStorageServiceSweeper" depends-on="shibboleth.LogbackLogging">
86 <constructor-arg ref="shibboleth.TaskTimer" />
87 <constructor-arg ref="shibboleth.StorageService" />
88 <constructor-arg value="600000" type="long" />
91 <bean id="shibboleth.SessionManager"
92 class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl"
93 depends-on="shibboleth.LogbackLogging">
94 <constructor-arg ref="shibboleth.StorageService" />
95 <constructor-arg value="1800000" type="long" />
98 <bean id="shibboleth.ArtifactMap" class="org.opensaml.common.binding.artifact.BasicSAMLArtifactMap" depends-on="shibboleth.LogbackLogging">
99 <constructor-arg ref="shibboleth.ParserPool" />
100 <constructor-arg ref="shibboleth.StorageService" />
101 <constructor-arg type="long" value="300000" />
104 <bean id="shibboleth.ReplayCache" class="org.opensaml.util.storage.ReplayCache" depends-on="shibboleth.LogbackLogging">
105 <constructor-arg ref="shibboleth.StorageService" />
106 <constructor-arg type="long" value="300000" />
109 <util:map id="shibboleth.MessageDecoders">
112 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
114 <bean id="shibboleth.SAML2HttpPostSimpleSignDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostSimpleSignDecoder">
115 <constructor-arg ref="shibboleth.ParserPool" />
120 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
122 <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
123 <constructor-arg ref="shibboleth.ParserPool" />
128 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
130 <bean id="shibboleth.SAML2HttpRedirectDecoder"
131 class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoder">
132 <constructor-arg ref="shibboleth.ParserPool" />
137 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
139 <bean id="shibboleth.SAML2HttpSoap11Decoder"
140 class="org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder">
141 <constructor-arg ref="shibboleth.ParserPool" />
146 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
148 <bean id="shibboleth.SAML1HttpPostDecoder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoder">
149 <constructor-arg ref="shibboleth.ArtifactMap" />
150 <constructor-arg ref="shibboleth.ParserPool" />
155 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
157 <bean id="shibboleth.SAML1HttpSoap11Decoder"
158 class="org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder">
159 <constructor-arg ref="shibboleth.ArtifactMap" />
160 <constructor-arg ref="shibboleth.ParserPool" />
165 <value>urn:mace:shibboleth:1.0:profiles:AuthnRequest</value>
167 <bean id="shibboleth.ShibbolethSSODecoder"
168 class="edu.internet2.middleware.shibboleth.idp.profile.saml1.ShibbolethSSODecoder">
173 <util:map id="shibboleth.MessageEncoders">
176 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
178 <bean id="shibboleth.SAML2HttpPostSimpleSignEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostSimpleSignEncoder">
179 <constructor-arg ref="shibboleth.VelocityEngine" />
180 <constructor-arg value="/templates/saml2-post-simplesign-binding.vm" />
185 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
187 <bean id="shibboleth.SAML2HttpPostEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoder">
188 <constructor-arg ref="shibboleth.VelocityEngine" />
189 <constructor-arg value="/templates/saml2-post-binding.vm" />
194 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
196 <bean id="shibboleth.SAML2HttpRedirectEncoder"
197 class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder" />
201 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
203 <bean id="shibboleth.SAML2HTTPArtifactEncoder"
204 class="org.opensaml.saml2.binding.encoding.HTTPArtifactEncoder">
205 <constructor-arg ref="shibboleth.ArtifactMap" />
206 <constructor-arg ref="shibboleth.VelocityEngine" />
207 <constructor-arg value="/templates/saml2-post-artifact-binding.vm" />
212 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
214 <bean id="shibboleth.SAML2HttpSoap11Encoder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder" />
218 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
220 <bean id="shibboleth.SAML1HttpPostEncoder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoder">
221 <constructor-arg ref="shibboleth.VelocityEngine" />
222 <constructor-arg value="/templates/saml1-post-binding.vm" />
227 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
229 <bean id="shibboleth.SAML1HttpArtifactEncoder"
230 class="org.opensaml.saml1.binding.encoding.HTTPArtifactEncoder">
231 <constructor-arg ref="shibboleth.ArtifactMap" />
236 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
238 <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder"
239 class="org.opensaml.saml1.binding.encoding.HTTPSOAP11Encoder" />
243 <bean id="shibboleth.ServletAttributeExporter"
244 class="edu.internet2.middleware.shibboleth.common.config.service.ServletContextAttributeExporter"
245 depends-on="shibboleth.LogbackLogging"
246 init-method="initialize" >
249 <value>shibboleth.SessionManager</value>