Start of full flow unit tests. Can be used as a template for testing other profile...
[java-idp.git] / tests / 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     default-autowire="byType">
6     
7     <!-- Spring configuration file that boostraps OpenSAML -->
8     <bean id="shibboleth.OpensamlConfig" class="edu.internet2.middleware.shibboleth.common.config.OpensamlConfigBean" lazy-init="false">
9         <constructor-arg>
10             <list>
11                 <bean id="default" class="org.opensaml.util.resource.ClasspathResource">
12                     <constructor-arg value="/default-config.xml" />
13                 </bean>
14                 <bean id="schema" class="org.opensaml.util.resource.ClasspathResource">
15                     <constructor-arg value="/schema-config.xml" />
16                 </bean>
17                 <bean id="signature" class="org.opensaml.util.resource.ClasspathResource">
18                     <constructor-arg value="/signature-config.xml" />
19                 </bean>
20                 <bean id="encryption" class="org.opensaml.util.resource.ClasspathResource">
21                     <constructor-arg value="/encryption-config.xml" />
22                 </bean>
23                 <bean id="soap11" class="org.opensaml.util.resource.ClasspathResource">
24                     <constructor-arg value="/soap11-config.xml" />
25                 </bean>
26                 <bean id="saml1Assertion" class="org.opensaml.util.resource.ClasspathResource">
27                     <constructor-arg value="/saml1-assertion-config.xml" />
28                 </bean>
29                 <bean id="saml1Protocol" class="org.opensaml.util.resource.ClasspathResource">
30                     <constructor-arg value="/saml1-protocol-config.xml" />
31                 </bean>
32                 <bean id="saml1Metadata" class="org.opensaml.util.resource.ClasspathResource">
33                     <constructor-arg value="/saml1-metadata-config.xml" />
34                 </bean>
35                 <bean id="saml2Assertion" class="org.opensaml.util.resource.ClasspathResource">
36                     <constructor-arg value="/saml2-assertion-config.xml" />
37                 </bean>
38                 <bean id="saml2Protocol" class="org.opensaml.util.resource.ClasspathResource">
39                     <constructor-arg value="/saml2-protocol-config.xml" />
40                 </bean>
41                 <bean id="saml2ThirdParty" class="org.opensaml.util.resource.ClasspathResource">
42                     <constructor-arg value="/saml2-protocol-thirdparty-config.xml" />
43                 </bean>
44                 <bean id="saml2Metadata" class="org.opensaml.util.resource.ClasspathResource">
45                     <constructor-arg value="/saml2-metadata-config.xml" />
46                 </bean>
47                 <bean id="saml2MetadataQuery" class="org.opensaml.util.resource.ClasspathResource">
48                     <constructor-arg value="/saml2-metadata-query-config.xml" />
49                 </bean>               
50             </list>
51         </constructor-arg>
52     </bean>
53
54     <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" >
55         <property name="velocityProperties">
56             <props>
57                 <prop key="resource.loader">classpath, string</prop>
58                 <prop key="classpath.resource.loader.class">
59                     org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
60                 </prop>
61                 <prop key="string.resource.loader.class">
62                     org.apache.velocity.runtime.resource.loader.StringResourceLoader
63                 </prop>
64             </props>
65         </property>
66     </bean>
67
68     <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
69         <constructor-arg value="true" type="boolean" />
70     </bean>
71
72     <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool">
73         <property name="maxPoolSize" value="50" />
74         <property name="createBuildersAtPoolLimit" value="true" />
75         <property name="coalescing" value="true" />
76         <property name="ignoreComments" value="true" />
77         <property name="ignoreElementContentWhitespace" value="true" />
78         <property name="namespaceAware" value="true" />
79     </bean>
80
81     <bean id="shibboleth.SAML2AttributeQueryMessageSecurityPolicyFactory" class="org.opensaml.common.binding.security.SAMLSecurityPolicyFactory">
82         <property name="issuerRole">
83             <bean id="shibboleth.SAML2AttributeQueryRole" class="javax.xml.namespace.QName">
84                 <constructor-arg value="urn:oasis:names:tc:SAML:2.0:metadata" />
85                 <constructor-arg value="SPSSODescriptor" />
86             </bean>
87         </property>
88         <property name="issuerProtocol" value="urn:oasis:names:tc:SAML:2.0:protocol" />
89         <property name="policyRuleFactories">
90             <list>
91                 <ref bean="shibboleth.SAML2ProtocolMessageRuleFactory" />
92                 <ref bean="shibboleth.MessageIssueInstantRuleFactory" />
93             </list>
94         </property>
95     </bean>
96     
97     <bean id="shibboleth.SAML2ProtocolMessageRuleFactory" class="org.opensaml.saml2.binding.security.SAML2ProtocolMessageRuleFactory" />
98     
99     <bean id="shibboleth.MessageIssueInstantRuleFactory" class="org.opensaml.common.binding.security.IssueInstantRuleFactory">
100         <property name="clockSkew" value="5" />
101         <property name="expires" value="10" />
102     </bean>
103     
104     <bean id="shibboleth.MessageEncoderFactory" class="org.opensaml.common.binding.encoding.MessageEncoderFactory">
105         <property name="encoderBuilders">
106             <map>
107                 <entry>
108                     <key>
109                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
110                     </key>
111                     <bean id="shibboleth.SAML2HttpPostEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoderBuilder">
112                         <constructor-arg ref="shibboleth.VelocityEngine" />
113                         <constructor-arg value="/templates/saml2-post-binding.vm"/>
114                     </bean>
115                 </entry>
116                 <entry>
117                     <key>
118                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect</value>
119                     </key>
120                     <bean id="shibboleth.SAML2HttpRedirectEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoderBuilder" />
121                 </entry>
122                 <entry>
123                     <key>
124                         <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
125                     </key>
126                     <bean id="shibboleth.SAML2HttpSoap11EncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11EncoderBuilder" />
127                 </entry>
128                 <entry>
129                     <key>
130                         <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
131                     </key>
132                     <bean id="shibboleth.SAML1HttpPostEncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoderBuilder">
133                         <constructor-arg ref="shibboleth.VelocityEngine" />
134                         <constructor-arg value="/templates/saml1-post-binding.vm"/>
135                     </bean>
136                 </entry>
137                 <entry>
138                     <key>
139                         <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
140                     </key>
141                     <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPSOAP11EncoderBuilder" />
142                 </entry>
143             </map>
144         </property>
145     </bean>
146     
147     <bean id="shibboleth.MessageDecoderFactory" class="org.opensaml.common.binding.decoding.MessageDecoderFactory">
148         <property name="decoderBuilders">
149             <map>
150                 <entry>
151                     <key>
152                         <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
153                     </key>
154                     <bean id="shibboleth.SAML2HttpPostDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoderBuilder" />
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.SAML2HttpRedirectDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPRedirectDeflateDecoderBuilder" />
161                 </entry>
162                 <entry>
163                     <key>
164                         <value>urn:oasis:names:tc:SAML:2.0:bindings:SOAP</value>
165                     </key>
166                     <bean id="shibboleth.SAML2HttpSoap11DecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPSOAP11DecoderBuilder" />
167                 </entry>
168                 <entry>
169                     <key>
170                         <value>urn:oasis:names:tc:SAML:1.0:profiles:browser-post</value>
171                     </key>
172                     <bean id="shibboleth.SAML1HttpPostDecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoderBuilder" />
173                 </entry>
174                 <entry>
175                     <key>
176                         <value>urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding</value>
177                     </key>
178                     <bean id="shibboleth.SAML1HttpSoap11DecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPSOAP11DecoderBuilder" />
179                 </entry>
180             </map>
181         </property>
182     </bean>
183     
184     <bean id="shibboleth.SessionManager" class="edu.internet2.middleware.shibboleth.idp.session.impl.SessionManagerImpl" />
185     
186     <!-- We're not operating in a servlet container so this won't work -->
187     <!-- 
188     <bean id="shibboleth.ServletAttributeExporter"
189         class="org.springframework.web.context.support.ServletContextAttributeExporter">
190         <property name="attributes">
191             <map>
192                 <entry>
193                     <key>
194                         <value>handlerManager</value>
195                     </key>
196                     <ref bean="shibboleth.ProfileHandler" />
197                 </entry>
198             </map>
199         </property>
200     </bean>
201     -->
202     
203 </beans>