Bunch o' bug fixes, all IdP configuration files now load.
[java-idp.git] / resources / conf / internal.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- 
4     This file contains advanced configuration options for the Identity Providers.
5     
6     DO NOT EDIT THIS FILE unless you're absolutely certain you understand what you are doing.
7 -->
8
9 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
11     default-autowire="byType">
12     
13     <!-- Spring configuration file that boostraps OpenSAML -->
14     <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean" lazy-init="false">
15         <constructor-arg>
16             <list>
17                 <bean id="default" class="org.opensaml.util.resource.ClasspathResource">
18                     <constructor-arg value="/default-config.xml" />
19                 </bean>
20                 <bean id="schema" class="org.opensaml.util.resource.ClasspathResource">
21                     <constructor-arg value="/schema-config.xml" />
22                 </bean>
23                 <bean id="signature" class="org.opensaml.util.resource.ClasspathResource">
24                     <constructor-arg value="/signature-config.xml" />
25                 </bean>
26                 <bean id="encryption" class="org.opensaml.util.resource.ClasspathResource">
27                     <constructor-arg value="/encryption-config.xml" />
28                 </bean>
29                 <bean id="soap11" class="org.opensaml.util.resource.ClasspathResource">
30                     <constructor-arg value="/soap11-config.xml" />
31                 </bean>
32                 <bean id="saml1Assertion" class="org.opensaml.util.resource.ClasspathResource">
33                     <constructor-arg value="/saml1-assertion-config.xml" />
34                 </bean>
35                 <bean id="saml1Protocol" class="org.opensaml.util.resource.ClasspathResource">
36                     <constructor-arg value="/saml1-protocol-config.xml" />
37                 </bean>
38                 <bean id="saml1Metadata" class="org.opensaml.util.resource.ClasspathResource">
39                     <constructor-arg value="/saml1-metadata-config.xml" />
40                 </bean>
41                 <bean id="saml2Assertion" class="org.opensaml.util.resource.ClasspathResource">
42                     <constructor-arg value="/saml2-assertion-config.xml" />
43                 </bean>
44                 <bean id="saml2Protocol" class="org.opensaml.util.resource.ClasspathResource">
45                     <constructor-arg value="/saml2-protocol-config.xml" />
46                 </bean>
47                 <bean id="saml2ThirdParty" class="org.opensaml.util.resource.ClasspathResource">
48                     <constructor-arg value="/saml2-protocol-thirdparty-config.xml" />
49                 </bean>
50                 <bean id="saml2Metadata" class="org.opensaml.util.resource.ClasspathResource">
51                     <constructor-arg value="/saml2-metadata-config.xml" />
52                 </bean>
53                 <bean id="saml2MetadataQuery" class="org.opensaml.util.resource.ClasspathResource">
54                     <constructor-arg value="/saml2-metadata-query-config.xml" />
55                 </bean>               
56             </list>
57         </constructor-arg>
58     </bean>
59
60     <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" >
61         <property name="velocityProperties">
62             <props>
63                 <prop key="resource.loader">classpath, string</prop>
64                 <prop key="classpath.resource.loader.class">
65                     org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
66                 </prop>
67                 <prop key="string.resource.loader.class">
68                     org.apache.velocity.runtime.resource.loader.StringResourceLoader
69                 </prop>
70             </props>
71         </property>
72     </bean>
73
74     <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
75         <constructor-arg value="true" type="boolean" />
76     </bean>
77
78     <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool">
79         <property name="maxPoolSize" value="50" />
80         <property name="createBuildersAtPoolLimit" value="true" />
81         <property name="coalescing" value="true" />
82         <property name="ignoreComments" value="true" />
83         <property name="ignoreElementContentWhitespace" value="true" />
84         <property name="namespaceAware" value="true" />
85     </bean>
86
87     <bean id="shibboleth.SAML2AttributeQueryMessageSecurityPolicyFactory" class="org.opensaml.common.binding.security.SAMLSecurityPolicyFactory">
88         <property name="issuerRole">
89             <bean id="shibboleth.SAML2AttributeQueryRole" class="javax.xml.namespace.QName">
90                 <constructor-arg value="urn:oasis:names:tc:SAML:2.0:metadata" />
91                 <constructor-arg value="SPSSODescriptor" />
92             </bean>
93         </property>
94         <property name="issuerProtocol" value="urn:oasis:names:tc:SAML:2.0:protocol" />
95         <property name="policyRuleFactories">
96             <list>
97                 <ref bean="shibboleth.SAML2ProtocolMessageRuleFactory" />
98                 <ref bean="shibboleth.MessageIssueInstantRuleFactory" />
99             </list>
100         </property>
101     </bean>
102     
103     <bean id="shibboleth.SAML2ProtocolMessageRuleFactory" class="org.opensaml.saml2.binding.security.SAML2ProtocolMessageRuleFactory" />
104     
105     <bean id="shibboleth.MessageIssueInstantRuleFactory" class="org.opensaml.common.binding.security.IssueInstantRuleFactory">
106         <property name="clockSkew" value="5" />
107         <property name="expires" value="10" />
108     </bean>
109     
110     <bean id="shibboleth.MessageEncoderFactory" class="org.opensaml.common.binding.encoding.MessageEncoderFactory">
111         <property name="encoderBuilders">
112             <map>
113                 <entry>
114                     <key>
115                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
116                     </key>
117                     <bean id="shibboleth.SAML2HttpPostEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoderBuilder">
118                         <constructor-arg ref="shibboleth.VelocityEngine" />
119                         <constructor-arg value="/templates/saml2-post-binding.vm"/>
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.SAML2HttpRedirectEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoderBuilder" />
127                 </entry>
128                 <entry>
129                     <key>
130                         <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
131                     </key>
132                     <bean id="shibboleth.SAML2HttpSoap11EncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11EncoderBuilder" />
133                 </entry>
134                 <entry>
135                     <key>
136                         <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
137                     </key>
138                     <bean id="shibboleth.SAML1HttpPostEncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoderBuilder">
139                         <constructor-arg ref="shibboleth.VelocityEngine" />
140                         <constructor-arg value="/templates/saml1-post-binding.vm"/>
141                     </bean>
142                 </entry>
143                 <entry>
144                     <key>
145                         <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
146                     </key>
147                     <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPSOAP11EncoderBuilder" />
148                 </entry>
149             </map>
150         </property>
151     </bean>
152     
153     <bean id="shibboleth.MessageDecoderFactory" class="org.opensaml.common.binding.decoding.MessageDecoderFactory">
154         <property name="decoderBuilders">
155             <map>
156                 <entry>
157                     <key>
158                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
159                     </key>
160                     <bean id="shibboleth.SAML2HttpPostDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoderBuilder" />
161                 </entry>
162                 <entry>
163                     <key>
164                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
165                     </key>
166                     <bean id="shibboleth.SAML2HttpRedirectDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoderBuilder" />
167                 </entry>
168                 <entry>
169                     <key>
170                         <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
171                     </key>
172                     <bean id="shibboleth.SAML2HttpSoap11DecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPSOAP11DecoderBuilder" />
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.SAML1HttpPostDecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoderBuilder" />
179                 </entry>
180                 <entry>
181                     <key>
182                         <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
183                     </key>
184                     <bean id="shibboleth.SAML1HttpSoap11DecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPSOAP11DecoderBuilder" />
185                 </entry>
186             </map>
187         </property>
188     </bean>
189     
190     <bean id="shibboleth.ServletAttributeExporter"
191         class="org.springframework.web.context.support.ServletContextAttributeExporter">
192         <property name="attributes">
193             <map>
194                 <entry>
195                     <key>
196                         <value>handlerManager</value>
197                     </key>
198                     <ref bean="shibboleth.ProfileHandler" />
199                 </entry>
200             </map>
201         </property>
202     </bean>
203     
204 </beans>