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