Add a bit of javadoc
[java-idp.git] / test / data / conf1 / 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     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
5     
6     <!-- Spring configuration file that boostraps OpenSAML -->
7     <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean" lazy-init="false">
8         <constructor-arg>
9             <list>
10                 <bean id="default" class="org.opensaml.util.resource.ClasspathResource">
11                     <constructor-arg value="/default-config.xml" />
12                 </bean>
13                 <bean id="schema" class="org.opensaml.util.resource.ClasspathResource">
14                     <constructor-arg value="/schema-config.xml" />
15                 </bean>
16                 <bean id="signature" class="org.opensaml.util.resource.ClasspathResource">
17                     <constructor-arg value="/signature-config.xml" />
18                 </bean>
19                 <bean id="encryption" class="org.opensaml.util.resource.ClasspathResource">
20                     <constructor-arg value="/encryption-config.xml" />
21                 </bean>
22                 <bean id="soap11" class="org.opensaml.util.resource.ClasspathResource">
23                     <constructor-arg value="/soap11-config.xml" />
24                 </bean>
25                 <bean id="saml1Assertion" class="org.opensaml.util.resource.ClasspathResource">
26                     <constructor-arg value="/saml1-assertion-config.xml" />
27                 </bean>
28                 <bean id="saml1Protocol" class="org.opensaml.util.resource.ClasspathResource">
29                     <constructor-arg value="/saml1-protocol-config.xml" />
30                 </bean>
31                 <bean id="saml1Metadata" class="org.opensaml.util.resource.ClasspathResource">
32                     <constructor-arg value="/saml1-metadata-config.xml" />
33                 </bean>
34                 <bean id="saml2Assertion" class="org.opensaml.util.resource.ClasspathResource">
35                     <constructor-arg value="/saml2-assertion-config.xml" />
36                 </bean>
37                 <bean id="saml2Protocol" class="org.opensaml.util.resource.ClasspathResource">
38                     <constructor-arg value="/saml2-protocol-config.xml" />
39                 </bean>
40                 <bean id="saml2ThirdParty" class="org.opensaml.util.resource.ClasspathResource">
41                     <constructor-arg value="/saml2-protocol-thirdparty-config.xml" />
42                 </bean>
43                 <bean id="saml2Metadata" class="org.opensaml.util.resource.ClasspathResource">
44                     <constructor-arg value="/saml2-metadata-config.xml" />
45                 </bean>
46                 <bean id="saml2MetadataQuery" class="org.opensaml.util.resource.ClasspathResource">
47                     <constructor-arg value="/saml2-metadata-query-config.xml" />
48                 </bean>               
49             </list>
50         </constructor-arg>
51     </bean>
52     
53     <bean id="shibboleth.IdGenerator" class="org.opensaml.common.impl.SecureRandomIdentifierGenerator">
54         <constructor-arg value="SHA1PRNG" />
55     </bean>
56
57     <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" >
58         <property name="velocityProperties">
59             <props>
60                 <prop key="resource.loader">classpath, string</prop>
61                 <prop key="classpath.resource.loader.class">
62                     org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
63                 </prop>
64                 <prop key="string.resource.loader.class">
65                     org.apache.velocity.runtime.resource.loader.StringResourceLoader
66                 </prop>
67             </props>
68         </property>
69     </bean>
70
71     <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
72         <constructor-arg value="true" type="boolean" />
73     </bean>
74
75     <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool">
76         <property name="maxPoolSize" value="50" />
77         <property name="createBuildersAtPoolLimit" value="true" />
78         <property name="coalescing" value="true" />
79         <property name="ignoreComments" value="true" />
80         <property name="ignoreElementContentWhitespace" value="true" />
81         <property name="namespaceAware" value="true" />
82     </bean>
83
84     <bean id="shibboleth.SAML2SSOMessageSecurityPolicyFactoryNoIssuerAuth"
85           parent="shibboleth.SAML2SSOMessageSecurityPolicyFactoryIssuerAuth">
86         <property name="requiredAuthenticatedIssuer" value="false" />
87     </bean>
88     
89     <bean id="shibboleth.SAML2SSOMessageSecurityPolicyFactoryIssuerAuth"
90           parent="shibboleth.BaseSAML2SecurityPolicyFactory">
91         <property name="issuerRole">
92             <bean id="shibboleth.SAML2SSORole" class="javax.xml.namespace.QName">
93                 <constructor-arg value="urn:oasis:names:tc:SAML:2.0:metadata" />
94                 <constructor-arg value="SPSSODescriptor" />
95             </bean>
96         </property>
97     </bean>
98     
99     <bean id="shibboleth.SAML2AttributeQueryMessageSecurityPolicyFactoryNoIssuerAuth"
100           parent="shibboleth.SAML2AttributeQueryMessageSecurityPolicyFactoryIssuerAuth">
101         <property name="requiredAuthenticatedIssuer" value="false" />
102     </bean>
103     
104     <bean id="shibboleth.SAML2AttributeQueryMessageSecurityPolicyFactoryIssuerAuth"
105           parent="shibboleth.BaseSAML2SecurityPolicyFactory">
106         <property name="issuerRole">
107             <bean id="shibboleth.SAML2AttributeQueryRole" class="javax.xml.namespace.QName">
108                 <constructor-arg value="urn:oasis:names:tc:SAML:2.0:metadata" />
109                 <constructor-arg value="SPSSODescriptor" />
110             </bean>
111         </property>
112     </bean>
113     
114     <bean id="shibboleth.BaseSAML2SecurityPolicyFactory" abstract="true" class="org.opensaml.common.binding.security.SAMLSecurityPolicyFactory">
115         <property name="issuerProtocol" value="urn:oasis:names:tc:SAML:2.0:protocol" />
116         <property name="policyRuleFactories">
117             <list>
118                 <ref bean="shibboleth.SAML2ProtocolMessageRuleFactory" />
119                 <ref bean="shibboleth.MessageIssueInstantRuleFactory" />
120             </list>
121         </property>
122         <property name="requiredAuthenticatedIssuer" value="true" />
123     </bean>
124     
125     <bean id="shibboleth.SAML2ProtocolMessageRuleFactory" class="org.opensaml.saml2.binding.security.SAML2ProtocolMessageRuleFactory" />
126     
127     <bean id="shibboleth.MessageIssueInstantRuleFactory" class="org.opensaml.common.binding.security.IssueInstantRuleFactory">
128         <property name="clockSkew" value="5" />
129         <property name="expires" value="10" />
130     </bean>
131     
132     <bean id="shibboleth.MessageEncoderFactory" class="org.opensaml.common.binding.encoding.MessageEncoderFactory">
133         <property name="encoderBuilders">
134             <map>
135                 <entry>
136                     <key>
137                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
138                     </key>
139                     <bean id="shibboleth.SAML2HttpPostEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoderBuilder">
140                         <constructor-arg ref="shibboleth.VelocityEngine" />
141                         <constructor-arg value="/templates/saml2-post-binding.vm"/>
142                     </bean>
143                 </entry>
144                 <entry>
145                     <key>
146                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
147                     </key>
148                     <bean id="shibboleth.SAML2HttpRedirectEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoderBuilder" />
149                 </entry>
150                 <entry>
151                     <key>
152                         <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
153                     </key>
154                     <bean id="shibboleth.SAML2HttpSoap11EncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11EncoderBuilder" />
155                 </entry>
156                 <entry>
157                     <key>
158                         <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
159                     </key>
160                     <bean id="shibboleth.SAML1HttpPostEncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoderBuilder">
161                         <constructor-arg ref="shibboleth.VelocityEngine" />
162                         <constructor-arg value="/templates/saml1-post-binding.vm"/>
163                     </bean>
164                 </entry>
165                 <entry>
166                     <key>
167                         <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
168                     </key>
169                     <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPSOAP11EncoderBuilder" />
170                 </entry>
171             </map>
172         </property>
173     </bean>
174     
175     <bean id="shibboleth.MessageDecoderFactory" class="org.opensaml.common.binding.decoding.MessageDecoderFactory">
176         <property name="decoderBuilders">
177             <map>
178                 <entry>
179                     <key>
180                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
181                     </key>
182                     <bean id="shibboleth.SAML2HttpPostDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoderBuilder">
183                         <property name="parser" ref="shibboleth.ParserPool" />
184                     </bean>
185                 </entry>
186                 <entry>
187                     <key>
188                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
189                     </key>
190                     <bean id="shibboleth.SAML2HttpRedirectDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoderBuilder" >
191                         <property name="parser" ref="shibboleth.ParserPool" />
192                     </bean>
193                 </entry>
194                 <entry>
195                     <key>
196                         <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
197                     </key>
198                     <bean id="shibboleth.SAML2HttpSoap11DecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPSOAP11DecoderBuilder" >
199                         <property name="parser" ref="shibboleth.ParserPool" />
200                     </bean>
201                 </entry>
202                 <entry>
203                     <key>
204                         <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
205                     </key>
206                     <bean id="shibboleth.SAML1HttpPostDecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoderBuilder" >
207                         <property name="parser" ref="shibboleth.ParserPool" />
208                     </bean>
209                 </entry>
210                 <entry>
211                     <key>
212                         <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
213                     </key>
214                     <bean id="shibboleth.SAML1HttpSoap11DecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPSOAP11DecoderBuilder" >
215                         <property name="parser" ref="shibboleth.ParserPool" />
216                     </bean>
217                 </entry>
218             </map>
219         </property>
220     </bean>
221     
222     <bean id="shibboleth.SessionManager" class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl" />
223     
224     <bean id="shibboleth.SAML2AttributeAuthority"
225           class="edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAML2AttributeAuthority">
226           <constructor-arg ref="shibboleth.AttributeResolver" />
227           <property name="filteringEngine" ref="shibboleth.AttributeFilterEngine" />
228     </bean>
229     
230     <!-- We're not operating in a servlet container so this won't work -->
231     <!-- 
232     <bean id="shibboleth.ServletAttributeExporter"
233         class="org.springframework.web.context.support.ServletContextAttributeExporter">
234         <property name="attributes">
235             <map>
236                 <entry>
237                     <key>
238                         <value>handlerManager</value>
239                     </key>
240                     <ref bean="shibboleth.ProfileHandler" />
241                 </entry>
242             </map>
243         </property>
244     </bean>
245     -->
246     
247 </beans>