ef11dd634e228023ab7815d6730104b22bfa1602
[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     <bean id="shibboleth.ServletAttributeExporter"
14         class="org.springframework.web.context.support.ServletContextAttributeExporter">
15         <property name="attributes">
16             <map>
17                 <entry>
18                     <key>
19                         <value>handlerManager</value>
20                     </key>
21                     <ref bean="shibboleth.ProfileHandler" />
22                 </entry>
23             </map>
24         </property>
25     </bean>
26     
27     <bean id="shibboleth.VelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean" >
28         <property name="velocityProperties">
29             <props>
30                 <prop key="resource.loader">classpath, string</prop>
31                 <prop key="classpath.resource.loader.class">
32                     org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
33                 </prop>
34                 <prop key="string.resource.loader.class">
35                     org.apache.velocity.runtime.resource.loader.StringResourceLoader
36                 </prop>
37             </props>
38         </property>
39     </bean>
40
41     <bean id="shibboleth.TaskTimer" class="java.util.Timer" destroy-method="cancel">
42         <constructor-arg value="true" type="boolean" />
43     </bean>
44
45     <bean id="shibboleth.ParserPool" class="org.opensaml.xml.parse.BasicParserPool">
46         <property name="maxPoolSize" value="50" />
47         <property name="createBuildersAtPoolLimit" value="true" />
48         <property name="coalescing" value="true" />
49         <property name="ignoreComments" value="true" />
50         <property name="ignoreElementContentWhitespace" value="true" />
51         <property name="namespaceAware" value="true" />
52     </bean>
53
54     <bean id="shibboleth.SAML2AttributeQueryMessageSecurityPolicyFactory" class="org.opensaml.common.binding.security.SAMLSecurityPolicyFactory">
55         <property name="issuerRole">
56             <bean id="shibboleth.SAML2AttributeQueryRole" class="javax.xml.namespace.QName">
57                 <constructor-arg value="urn:oasis:names:tc:SAML:2.0:metadata" />
58                 <constructor-arg value="SPSSODescriptor" />
59             </bean>
60         </property>
61         <property name="issuerProtocol" value="urn:oasis:names:tc:SAML:2.0:protocol" />
62         <property name="policyRuleFactories">
63             <list>
64                 <ref bean="shibboleth.SAML2ProtocolMessageRuleFactory" />
65                 <ref bean="shibboleth.MessageIssueInstantRuleFactory" />
66             </list>
67         </property>
68     </bean>
69     
70     <bean id="shibboleth.SAML2ProtocolMessageRuleFactory" class="org.opensaml.saml2.binding.security.SAML2ProtocolMessageRuleFactory" />
71     
72     <bean id="shibboleth.MessageIssueInstantRuleFactory" class="org.opensaml.common.binding.security.IssueInstantRuleFactory">
73         <property name="clockSkew" value="5" />
74         <property name="expires" value="10" />
75     </bean>
76     
77     <bean id="shibboleth.MessageEncoderFactory" class="org.opensaml.common.binding.encoding.MessageEncoderFactory">
78         <property name="encoderBuilders">
79             <map>
80                 <entry>
81                     <key value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
82                     <bean id="shibboleth.SAML2HttpPostEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPPostEncoderBuilder">
83                         <constructor-arg ref="shibboleth.VelocityEngine" />
84                         <constructor-arg value="/templates/saml2-post-binding.vm"/>
85                     </bean>
86                 </entry>
87                 <entry>
88                     <key value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/>
89                     <bean id="shibboleth.SAML2HttpRedirectEncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPRedirectDefalteEncoderBuilder" />
90                 </entry>
91                 <entry>
92                     <key value="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>
93                     <bean id="shibboleth.SAML2HttpSoap11EncoderBuilder" class="org.opensaml.saml2.binding.encoding.HTTPSOAP11EncoderBuilder" />
94                 </entry>
95                 <entry>
96                     <key value="urn:oasis:names:tc:SAML:1.0:profiles:browser-post"/>
97                     <bean id="shibboleth.SAML1HttpPostEncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPPostEncoderBuilder">
98                         <constructor-arg ref="shibboleth.VelocityEngine" />
99                         <constructor-arg value="/templates/saml1-post-binding.vm"/>
100                     </bean>
101                 </entry>
102                 <entry>
103                     <key value="urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding"/>
104                     <bean id="shibboleth.SAML1HttpSoap11EncoderBuilder" class="org.opensaml.saml1.binding.encoding.HTTPSOAP11EncoderBuilder" />
105                 </entry>
106             </map>
107         </property>
108     </bean>
109     
110     <bean id="shibboleth.MessageDecoderFactory" class="org.opensaml.common.binding.decoding.MessageDecoderFactory">
111         <property name="decoderBuilders">
112             <map>
113                 <entry>
114                     <key value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
115                     <bean id="shibboleth.SAML2HttpPostDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoderBuilder" />
116                 </entry>
117                 <entry>
118                     <key value="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/>
119                     <bean id="shibboleth.SAML2HttpRedirectDecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPRedirectDefalteDecoderBuilder" />
120                 </entry>
121                 <entry>
122                     <key value="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>
123                     <bean id="shibboleth.SAML2HttpSoap11DecoderBuilder" class="org.opensaml.saml2.binding.decoding.HTTPSOAP11DecoderBuilder" />
124                 </entry>
125                 <entry>
126                     <key value="urn:oasis:names:tc:SAML:1.0:profiles:browser-post"/>
127                     <bean id="shibboleth.SAML1HttpPostDecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPPostDecoderBuilder" />
128                 </entry>
129                 <entry>
130                     <key value="urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding"/>
131                     <bean id="shibboleth.SAML1HttpSoap11DecoderBuilder" class="org.opensaml.saml1.binding.decoding.HTTPSOAP11DecoderBuilder" />
132                 </entry>
133             </map>
134         </property>
135     </bean>
136     
137 </beans>