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