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 bootstraps 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="100" />
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" />
60 <property name="builderAttributes">
64 <value>http://apache.org/xml/properties/security-manager</value>
66 <bean id="shibboleth.XercesSecurityManager" class="org.apache.xerces.util.SecurityManager" />
70 <property name="builderFeatures">
74 <value>http://apache.org/xml/features/disallow-doctype-decl</value>
76 <util:constant static-field="java.lang.Boolean.TRUE"/>
82 <bean id="shibboleth.StorageService" class="org.opensaml.util.storage.MapBasedStorageService" depends-on="shibboleth.LogbackLogging" />
84 <bean id="shibboleth.StorageServiceSweeper" class="org.opensaml.util.storage.ExpiringObjectStorageServiceSweeper" depends-on="shibboleth.LogbackLogging">
85 <constructor-arg ref="shibboleth.TaskTimer" />
86 <constructor-arg ref="shibboleth.StorageService" />
87 <constructor-arg value="600000" type="long" />
90 <bean id="shibboleth.SessionManager"
91 class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl"
92 depends-on="shibboleth.LogbackLogging">
93 <constructor-arg ref="shibboleth.StorageService" />
94 <constructor-arg value="1800000" type="long" />
97 <bean id="shibboleth.ArtifactMap" class="org.opensaml.common.binding.artifact.BasicSAMLArtifactMap" depends-on="shibboleth.LogbackLogging">
98 <constructor-arg ref="shibboleth.ParserPool" />
99 <constructor-arg ref="shibboleth.StorageService" />
100 <constructor-arg type="long" value="300000" />
103 <bean id="shibboleth.ReplayCache" class="org.opensaml.util.storage.ReplayCache" depends-on="shibboleth.LogbackLogging">
104 <constructor-arg ref="shibboleth.StorageService" />
105 <constructor-arg type="long" value="300000" />
108 <util:map id="shibboleth.MessageDecoders">
111 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
113 <bean id="shibboleth.SAML2HttpPostSimpleSignDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostSimpleSignDecoder">
114 <constructor-arg ref="shibboleth.ParserPool" />
119 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
121 <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
122 <constructor-arg ref="shibboleth.ParserPool" />
127 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
129 <bean id="shibboleth.SAML2HttpRedirectDecoder"
130 class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoder">
131 <constructor-arg ref="shibboleth.ParserPool" />
136 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
138 <bean id="shibboleth.SAML2HttpSoap11Decoder"
139 class="org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder">
140 <constructor-arg ref="shibboleth.ParserPool" />
145 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
147 <bean id="shibboleth.SAML1HttpPostDecoder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoder">
148 <constructor-arg ref="shibboleth.ArtifactMap" />
149 <constructor-arg ref="shibboleth.ParserPool" />
154 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
156 <bean id="shibboleth.SAML1HttpSoap11Decoder"
157 class="org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder">
158 <constructor-arg ref="shibboleth.ArtifactMap" />
159 <constructor-arg ref="shibboleth.ParserPool" />
164 <value>urn:mace:shibboleth:1.0:profiles:AuthnRequest</value>
166 <bean id="shibboleth.ShibbolethSSODecoder"
167 class="edu.internet2.middleware.shibboleth.idp.profile.saml1.ShibbolethSSODecoder">
172 <util:map id="shibboleth.MessageEncoders">
175 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
177 <bean id="shibboleth.SAML2HttpPostSimpleSignEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostSimpleSignEncoder">
178 <constructor-arg ref="shibboleth.VelocityEngine" />
179 <constructor-arg value="/templates/saml2-post-simplesign-binding.vm" />
184 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
186 <bean id="shibboleth.SAML2HttpPostEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoder">
187 <constructor-arg ref="shibboleth.VelocityEngine" />
188 <constructor-arg value="/templates/saml2-post-binding.vm" />
193 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
195 <bean id="shibboleth.SAML2HttpRedirectEncoder"
196 class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder" />
200 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
202 <bean id="shibboleth.SAML2HTTPArtifactEncoder"
203 class="org.opensaml.saml2.binding.encoding.HTTPArtifactEncoder">
204 <constructor-arg ref="shibboleth.ArtifactMap" />
205 <constructor-arg ref="shibboleth.VelocityEngine" />
206 <constructor-arg value="/templates/saml2-post-artifact-binding.vm" />
211 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
213 <bean id="shibboleth.SAML2HttpSoap11Encoder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder" />
217 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
219 <bean id="shibboleth.SAML1HttpPostEncoder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoder">
220 <constructor-arg ref="shibboleth.VelocityEngine" />
221 <constructor-arg value="/templates/saml1-post-binding.vm" />
226 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
228 <bean id="shibboleth.SAML1HttpArtifactEncoder"
229 class="org.opensaml.saml1.binding.encoding.HTTPArtifactEncoder">
230 <constructor-arg ref="shibboleth.ArtifactMap" />
235 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
237 <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder"
238 class="org.opensaml.saml1.binding.encoding.HTTPSOAP11Encoder" />
242 <bean id="shibboleth.ServletAttributeExporter"
243 class="edu.internet2.middleware.shibboleth.common.config.service.ServletContextAttributeExporter"
244 depends-on="shibboleth.LogbackLogging"
245 init-method="initialize" >
248 <value>shibboleth.SessionManager</value>