Revert change in rev 2833
[java-idp.git] / src / installer / resources / conf-tmpl / internal.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
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" >
7
8     <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
9         <constructor-arg value="true" type="boolean" />
10     </bean>
11     
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" />
16     </bean>
17     
18     <!-- Spring configuration file that bootstraps OpenSAML -->
19     <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean" depends-on="shibboleth.LogbackLogging">
20         <constructor-arg>
21             <list>
22                 <bean id="shibMetadataExtensions" class="org.opensaml.util.resource.ClasspathResource">
23                     <constructor-arg value="/shibboleth-saml-ext-config.xml" />
24                 </bean>
25             </list>
26         </constructor-arg>
27     </bean>
28
29     <bean id="shibboleth.IdGenerator" class="org.opensaml.common.impl.SecureRandomIdentifierGenerator" depends-on="shibboleth.LogbackLogging">
30         <constructor-arg value="SHA1PRNG" />
31     </bean>
32
33     <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" depends-on="shibboleth.LogbackLogging">
34         <property name="velocityProperties">
35             <props>
36                 <prop key="resource.loader">classpath, string</prop>
37                 <prop key="classpath.resource.loader.class">
38                     org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
39                 </prop>
40                 <prop key="string.resource.loader.class">
41                     edu.internet2.middleware.shibboleth.common.util.StringResourceLoader
42                 </prop>
43             </props>
44         </property>
45     </bean>
46
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" />
51     </bean>
52
53     <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool" depends-on="shibboleth.LogbackLogging">
54         <property name="maxPoolSize" value="100" />
55         <property name="coalescing" value="true" />
56         <property name="ignoreComments" value="true" />
57         <property name="ignoreElementContentWhitespace" value="true" />
58         <property name="namespaceAware" value="true" />
59         <property name="builderAttributes">
60             <map>
61                 <entry>
62                     <key>
63                         <value>http://apache.org/xml/properties/security-manager</value>
64                     </key>
65                     <bean id="shibboleth.XercesSecurityManager" class="org.apache.xerces.util.SecurityManager" />
66                 </entry>
67             </map>
68         </property>
69         <property name="builderFeatures">
70             <map>
71                 <entry>
72                     <key>
73                         <value>http://apache.org/xml/features/disallow-doctype-decl</value>
74                     </key>
75                     <util:constant static-field="java.lang.Boolean.TRUE"/>
76                 </entry>
77             </map>
78         </property>
79     </bean>
80
81     <bean id="shibboleth.StorageService" class="edu.internet2.middleware.shibboleth.common.util.EventingMapBasedStorageService" depends-on="shibboleth.LogbackLogging" />
82
83     <bean id="shibboleth.StorageServiceSweeper" class="org.opensaml.util.storage.ExpiringObjectStorageServiceSweeper" depends-on="shibboleth.LogbackLogging">
84         <constructor-arg ref="shibboleth.TaskTimer" />
85         <constructor-arg ref="shibboleth.StorageService" />
86         <constructor-arg value="600000" type="long" />
87     </bean>
88
89     <bean id="shibboleth.SessionManager"
90           class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl"
91           depends-on="shibboleth.LogbackLogging">
92         <constructor-arg ref="shibboleth.StorageService" />
93         <constructor-arg value="1800000" type="long" />
94     </bean>
95
96     <bean id="shibboleth.ArtifactMap" class="org.opensaml.common.binding.artifact.BasicSAMLArtifactMap" depends-on="shibboleth.LogbackLogging">
97         <constructor-arg ref="shibboleth.ParserPool" />
98         <constructor-arg ref="shibboleth.StorageService" />
99         <constructor-arg type="long" value="300000" />
100     </bean>
101     
102     <bean id="shibboleth.ReplayCache" class="org.opensaml.util.storage.ReplayCache" depends-on="shibboleth.LogbackLogging">
103         <constructor-arg ref="shibboleth.StorageService" />
104         <constructor-arg type="long" value="300000" />
105     </bean>
106
107     <util:map id="shibboleth.MessageDecoders">
108         <entry>
109             <key>
110                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
111             </key>
112             <bean id="shibboleth.SAML2HttpPostSimpleSignDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostSimpleSignDecoder">
113                 <constructor-arg ref="shibboleth.ParserPool" />
114             </bean>
115         </entry>
116         <entry>
117             <key>
118                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
119             </key>
120             <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
121                 <constructor-arg ref="shibboleth.ParserPool" />
122             </bean>
123         </entry>
124         <entry>
125             <key>
126                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
127             </key>
128             <bean id="shibboleth.SAML2HttpRedirectDecoder"
129                 class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoder">
130                 <constructor-arg ref="shibboleth.ParserPool" />
131             </bean>
132         </entry>
133         <entry>
134             <key>
135                 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
136             </key>
137             <bean id="shibboleth.SAML2HttpSoap11Decoder"
138                 class="org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder">
139                 <constructor-arg ref="shibboleth.ParserPool" />
140             </bean>
141         </entry>
142         <entry>
143             <key>
144                 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
145             </key>
146             <bean id="shibboleth.SAML1HttpPostDecoder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoder">
147                 <constructor-arg ref="shibboleth.ArtifactMap" />
148                 <constructor-arg ref="shibboleth.ParserPool" />
149             </bean>
150         </entry>
151         <entry>
152             <key>
153                 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
154             </key>
155             <bean id="shibboleth.SAML1HttpSoap11Decoder"
156                 class="org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder">
157                 <constructor-arg ref="shibboleth.ArtifactMap" />
158                 <constructor-arg ref="shibboleth.ParserPool" />
159             </bean>
160         </entry>
161         <entry>
162             <key>
163                 <value>urn:mace:shibboleth:1.0:profiles:AuthnRequest</value>
164             </key>
165             <bean id="shibboleth.ShibbolethSSODecoder"
166                 class="edu.internet2.middleware.shibboleth.idp.profile.saml1.ShibbolethSSODecoder">
167             </bean>
168         </entry>
169     </util:map>
170
171     <util:map id="shibboleth.MessageEncoders">
172         <entry>
173             <key>
174                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
175             </key>
176             <bean id="shibboleth.SAML2HttpPostSimpleSignEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostSimpleSignEncoder">
177                 <constructor-arg ref="shibboleth.VelocityEngine" />
178                 <constructor-arg value="/templates/saml2-post-simplesign-binding.vm" />
179             </bean>
180         </entry>
181         <entry>
182             <key>
183                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
184             </key>
185             <bean id="shibboleth.SAML2HttpPostEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoder">
186                 <constructor-arg ref="shibboleth.VelocityEngine" />
187                 <constructor-arg value="/templates/saml2-post-binding.vm" />
188             </bean>
189         </entry>
190         <entry>
191             <key>
192                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
193             </key>
194             <bean id="shibboleth.SAML2HttpRedirectEncoder"
195                 class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder" />
196         </entry>
197         <entry>
198             <key>
199                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
200             </key>
201             <bean id="shibboleth.SAML2HTTPArtifactEncoder"
202                 class="org.opensaml.saml2.binding.encoding.HTTPArtifactEncoder">
203                 <constructor-arg ref="shibboleth.ArtifactMap" />
204                 <constructor-arg ref="shibboleth.VelocityEngine" />
205                 <constructor-arg value="/templates/saml2-post-artifact-binding.vm" />
206             </bean>
207         </entry>
208         <entry>
209             <key>
210                 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
211             </key>
212             <bean id="shibboleth.SAML2HttpSoap11Encoder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder" />
213         </entry>
214         <entry>
215             <key>
216                 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
217             </key>
218             <bean id="shibboleth.SAML1HttpPostEncoder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoder">
219                 <constructor-arg ref="shibboleth.VelocityEngine" />
220                 <constructor-arg value="/templates/saml1-post-binding.vm" />
221             </bean>
222         </entry>
223         <entry>
224             <key>
225                 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
226             </key>
227             <bean id="shibboleth.SAML1HttpArtifactEncoder"
228                 class="org.opensaml.saml1.binding.encoding.HTTPArtifactEncoder">
229                 <constructor-arg ref="shibboleth.ArtifactMap" />
230             </bean>
231         </entry>
232         <entry>
233             <key>
234                 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
235             </key>
236             <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder"
237                 class="org.opensaml.saml1.binding.encoding.HTTPSOAP11Encoder" />
238         </entry>
239     </util:map>
240
241     <bean id="shibboleth.ServletAttributeExporter"
242           class="edu.internet2.middleware.shibboleth.common.config.service.ServletContextAttributeExporter" 
243           depends-on="shibboleth.LogbackLogging"
244           init-method="initialize" >
245         <constructor-arg>
246            <list>
247                <value>shibboleth.SessionManager</value>
248            </list>
249         </constructor-arg>
250     </bean>
251
252 </beans>