Skip to content

Commit

Permalink
Make a channel for eduID.cz (cz-eduid).
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 13, 2011
1 parent 76d5cfe commit 8e9d994
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@
<CHANNEL.import channel="caf"/>
</target>

<target name="flow.cz-eduid.import">
<CHANNEL.import channel="cz-eduid"/>
</target>

<target name="flow.edugate.import">
<CHANNEL.import channel="edugate"/>
</target>
Expand Down
62 changes: 62 additions & 0 deletions mdx/cz-eduid/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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="cz-eduid.fetchExportAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="cz-eduid.fetchExportAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="https://metadata.eduid.cz/entities/eduid"/>
</bean>

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

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

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

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

<ref bean="disassemble"/>

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

</beans>
29 changes: 29 additions & 0 deletions mdx/cz-eduid/import.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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">

<!--
Import commonly used beans.
-->
<import resource="../common-beans.xml"/>

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

<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="cz-eduid.exportedEntities"/>
<ref bean="standardImportTail"/>
</list>
</property>
</bean>

</beans>
19 changes: 19 additions & 0 deletions mdx/cz-eduid/metadata.eduid.cz.crt.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDCjCCAfICCQDeyJjos8lOlTANBgkqhkiG9w0BAQUFADBHMRIwEAYKCZImiZPy
LGQBGRYCY3oxFTATBgoJkiaJk/IsZAEZFgVlZHVJRDEaMBgGA1UEAxMRbWV0YWRh
dGEuZWR1SUQuY3owHhcNMTEwMjE3MjAyMDAwWhcNMjEwMjE0MjAyMDAwWjBHMRIw
EAYKCZImiZPyLGQBGRYCY3oxFTATBgoJkiaJk/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