bd9c8a534da4798aa322d5f779af164cd55a6d2f
[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-metadata-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.TaskTimer" class="java.util.Timer" destroy-method="cancel">
44         <constructor-arg value="true" type="boolean" />
45     </bean>
46
47     <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool">
48         <property name="maxPoolSize" value="50" />
49         <property name="createBuildersAtPoolLimit" value="true" />
50         <property name="coalescing" value="true" />
51         <property name="ignoreComments" value="true" />
52         <property name="ignoreElementContentWhitespace" value="true" />
53         <property name="namespaceAware" value="true" />
54     </bean>
55
56     <util:map id="shibboleth.MessageDecoders">
57         <entry>
58             <key>
59                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
60             </key>
61             <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
62                 <constructor-arg ref="shibboleth.ParserPool" />
63             </bean>
64         </entry>
65         <entry>
66             <key>
67                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
68             </key>
69             <bean id="shibboleth.SAML2HttpRedirectDecoder"
70                 class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoder">
71                 <constructor-arg ref="shibboleth.ParserPool" />
72             </bean>
73         </entry>
74         <entry>
75             <key>
76                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
77             </key>
78             <bean id="shibboleth.SAML2HTTPArtifactDecoder"
79                 class="org.opensaml.saml2.binding.decoding.HTTPArtifactDecoder">
80                 <constructor-arg ref="shibboleth.ParserPool" />
81             </bean>
82         </entry>
83         <entry>
84             <key>
85                 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
86             </key>
87             <bean id="shibboleth.SAML2HttpSoap11Decoder"
88                 class="org.opensaml.saml2.binding.decoding.HTTPSOAP11Decoder">
89                 <constructor-arg ref="shibboleth.ParserPool" />
90             </bean>
91         </entry>
92         <entry>
93             <key>
94                 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
95             </key>
96             <bean id="shibboleth.SAML1HttpPostDecoder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoder">
97                 <constructor-arg ref="shibboleth.ParserPool" />
98             </bean>
99         </entry>
100         <entry>
101             <key>
102                 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
103             </key>
104             <bean id="shibboleth.SAML1HttpArtifactDecoder"
105                 class="org.opensaml.saml1.binding.encoding.HTTPArtifactDecoder">
106             </bean>
107         </entry>
108         <entry>
109             <key>
110                 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
111             </key>
112             <bean id="shibboleth.SAML1HttpSoap11Decoder"
113                 class="org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder">
114                 <constructor-arg ref="shibboleth.ParserPool" />
115             </bean>
116         </entry>
117         <entry>
118             <key>
119                 <value>urn:mace:shibboleth:1.0:profiles:AuthnRequest</value>
120             </key>
121             <bean id="shibboleth.ShibbolethSSODecoder"
122                 class="edu.internet2.middleware.shibboleth.idp.profile.saml1.ShibbolethSSODecoder">
123             </bean>
124         </entry>
125     </util:map>
126
127     <util:map id="shibboleth.MessageEncoders">
128         <entry>
129             <key>
130                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
131             </key>
132             <bean id="shibboleth.SAML2HttpPostEncoder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoder">
133                 <constructor-arg ref="shibboleth.VelocityEngine" />
134                 <constructor-arg value="/templates/saml2-post-binding.vm" />
135             </bean>
136         </entry>
137         <entry>
138             <key>
139                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
140             </key>
141             <bean id="shibboleth.SAML2HttpRedirectEncoder"
142                 class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder" />
143         </entry>
144         <entry>
145             <key>
146                 <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact</value>
147             </key>
148             <bean id="shibboleth.SAML2HTTPArtifactEncoder"
149                 class="org.opensaml.saml2.binding.decoding.HTTPArtifactEncoder">
150             </bean>
151         </entry>
152         <entry>
153             <key>
154                 <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
155             </key>
156             <bean id="shibboleth.SAML2HttpSoap11Encoder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder" />
157         </entry>
158         <entry>
159             <key>
160                 <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
161             </key>
162             <bean id="shibboleth.SAML1HttpPostEncoder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoder">
163                 <constructor-arg ref="shibboleth.VelocityEngine" />
164                 <constructor-arg value="/templates/saml1-post-binding.vm" />
165             </bean>
166         </entry>
167         <entry>
168             <key>
169                 <value>urn:oasis:names:tc:SAML:1.0:profiles:artifact-01</value>
170             </key>
171             <bean id="shibboleth.SAML1HttpArtifactEncoder"
172                 class="org.opensaml.saml1.binding.encoding.HTTPArtifactEncoder">
173             </bean>
174         </entry>
175         <entry>
176             <key>
177                 <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
178             </key>
179             <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder"
180                 class="org.opensaml.saml1.binding.encoding.HTTPSOAP11Encoder" />
181         </entry>
182     </util:map>
183
184     <bean id="shibboleth.SessionManager"
185         class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl" />
186
187     <bean id="shibboleth.SAML1AttributeAuthority"
188         class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML1AttributeAuthority">
189         <constructor-arg ref="shibboleth.AttributeResolver" />
190         <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
191     </bean>
192
193     <bean id="shibboleth.SAML2AttributeAuthority"
194         class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML2AttributeAuthority">
195         <constructor-arg ref="shibboleth.AttributeResolver" />
196         <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
197     </bean>
198
199     <bean id="shibboleth.ServletAttributeExporter"
200         class="org.springframework.web.context.support.ServletContextAttributeExporter">
201         <property name="attributes">
202             <map>
203                 <entry>
204                     <key>
205                         <value>handlerManager</value>
206                     </key>
207                     <ref bean="shibboleth.HandlerManager" />
208                 </entry>
209                 <entry>
210                     <key>
211                         <value>sessionManager</value>
212                     </key>
213                     <ref bean="shibboleth.SessionManager" />
214                 </entry>
215             </map>
216         </property>
217     </bean>
218
219 </beans>