Skip to content

Commit

Permalink
Rework edugate channel according to latest set of conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 13, 2011
1 parent 8b05f62 commit 868a852
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 49 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,8 @@
<CHANNEL.import channel="cz-eduid"/>
</target>

<target name="flow.edugate.import">
<CHANNEL.import channel="edugate"/>
<target name="flow.ie-edugate.import">
<CHANNEL.import channel="ie-edugate"/>
</target>

<target name="flow.incommon.import">
Expand Down
34 changes: 0 additions & 34 deletions mdx/edugate/beans.xml

This file was deleted.

61 changes: 61 additions & 0 deletions mdx/ie-edugate/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans" 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-3.0.xsd">

<!--
Fetch the export metadata aggregate.
For the moment, use the production aggregate in lieu of a designated export aggregate.
-->
<bean id="ie-edugate.fetchExportAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="ie-edugate.fetchExportAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="https://edugate.heanet.ie/edugate-metadata-signed.xml"/>
</bean>

<!--
Metadata signing certificate.
-->
<bean id="ie-edugate.signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<property name="certificateFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/ie-edugate/metadata-signer.crt"/>
</bean>
</property>
</bean>

<!--
Check the signature on a document.
-->
<bean id="ie-edugate.checkSignature" class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="ie-edugate.checkSignature"/>
<property name="verificationCertificate" ref="ie-edugate.signingCertificate"/>
</bean>

<!--
Fetch and process the exported entities as a collection.
-->
<bean id="ie-edugate.exportedEntities" class="net.shibboleth.metadata.pipeline.CompositeStage"
init-method="initialize" lazy-init="true">
<property name="id" value="ie-edugate.exportedEntities"/>
<property name="composedStages">
<list>
<ref bean="ie-edugate.fetchExportAggregate"/>
<ref bean="ie-edugate.checkSignature"/>

<!-- failure to validate signature is fatal -->
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="standardImportActions"/>
</list>
</property>
</bean>

</beans>
18 changes: 5 additions & 13 deletions mdx/edugate/import.xml → mdx/ie-edugate/import.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Import pipeline for metadata from Edugate.
Import pipeline for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans" 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-3.0.xsd">
Expand All @@ -11,24 +11,16 @@
<import resource="../common-beans.xml"/>

<!--
Import Edugate-specific beans.
Import channel-specific beans.
-->
<import resource="beans.xml"/>

<bean id="pipeline" class="net.shibboleth.metadata.pipeline.SimplePipeline">
<bean id="pipeline" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="pipeline"/>
<property name="stages">
<list>
<ref bean="fetchEdugateExportAggregate"/>
<ref bean="checkEdugateSignature"/>

<!-- failure to validate signature is fatal -->
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="standardImportActions"/>

<ref bean="ie-edugate.exportedEntities"/>
<ref bean="standardImportTail"/>
</list>
</property>
Expand Down
File renamed without changes.

0 comments on commit 868a852

Please sign in to comment.