Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@iay
Latest commit 31adc88 Jul 21, 2023 History
1 contributor

Users who have contributed to this file

149 lines (132 sloc) 5.24 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
default-lazy-init="true"
xmlns:c="http://www.springframework.org/schema/c"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<!--
Location of various resources.
-->
<!-- ACOnet-registered entities without interfederation -->
<bean id="at_aconet_registrarAggregate_url" parent="String">
<constructor-arg value="http://eduid.at/md/aconet-registered.xml"/>
</bean>
<!-- eduGAIN export aggregate -->
<bean id="at_aconet_edugainAggregate_url" parent="String">
<constructor-arg value="http://eduid.at/md/upstream-edugain.xml"/>
</bean>
<!--
Fetch the production aggregate.
-->
<bean id="at_aconet_productionAggregate" parent="mda.DOMResourceSourceStage">
<property name="parserPool" ref="parserPool"/>
<property name="DOMResource">
<bean parent="mda.HTTPResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="at_aconet_registrarAggregate_url"/>
</bean>
</property>
</bean>
<!--
Fetch the eduGAIN export aggregate.
-->
<bean id="at_aconet_edugainAggregate" parent="mda.DOMResourceSourceStage">
<property name="parserPool" ref="parserPool"/>
<property name="DOMResource">
<bean parent="mda.HTTPResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="at_aconet_edugainAggregate_url"/>
</bean>
</property>
</bean>
<!--
Signing certificate.
-->
<bean id="at_aconet_signingCertificate" parent="mda.X509CertificateFactoryBean"
p:resource="classpath:at_aconet/aconet-aai-metadata-signing.crt"/>
<!--
Check signing signature.
-->
<bean id="at_aconet_checkProductionSignature" parent="XMLSignatureValidationStage">
<property name="verificationCertificate" ref="at_aconet_signingCertificate"/>
</bean>
<bean id="at_aconet_checkEdugainSignature" parent="XMLSignatureValidationStageSHA256">
<property name="verificationCertificate" ref="at_aconet_signingCertificate"/>
</bean>
<!--
at_aconet_check_regauth
Any registrationAuthority already present on an entity in this
channel must match the known registration authority value.
-->
<bean id="at_aconet_check_regauth" parent="check_regauth_parent">
<property name="transformParameters">
<map>
<entry key="expectedAuthority" value-ref="at_aconet_registrar"/>
</map>
</property>
</bean>
<!--
at_aconet_default_regauth
Provide a default registrationAuthority appropriate to
this channel.
-->
<bean id="at_aconet_default_regauth" parent="default_regauth_parent">
<property name="transformParameters">
<map>
<entry key="defaultAuthority" value-ref="at_aconet_registrar"/>
</map>
</property>
</bean>
<!--
Fetch the production entities as a collection.
-->
<bean id="at_aconet_productionEntities" parent="mda.CompositeStage">
<property name="stages">
<list>
<ref bean="at_aconet_productionAggregate"/>
<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="at_aconet_checkProductionSignature"/>
<ref bean="errorTerminatingFilter"/>
<ref bean="disassemble"/>
</list>
</property>
</bean>
<!--
Fetch the eduGAIN export entities as a collection.
-->
<bean id="at_aconet_edugainEntities" parent="mda.CompositeStage">
<property name="stages">
<list>
<ref bean="at_aconet_edugainAggregate"/>
<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="at_aconet_checkEdugainSignature"/>
<ref bean="errorTerminatingFilter"/>
<ref bean="disassemble"/>
<ref bean="check_hasreginfo"/>
<ref bean="at_aconet_check_regauth"/>
</list>
</property>
</bean>
<!--
Select primary export aggregate.
-->
<alias alias="at_aconet_exportedAggregate" name="at_aconet_edugainAggregate"/>
<alias alias="at_aconet_exportedEntities" name="at_aconet_edugainEntities"/>
</beans>