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