Skip to content

Commit

Permalink
Add a channel for the Spanish SIR federation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 27, 2011
1 parent 6b3c74f commit c580aac
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,10 @@
<CHANNEL.import channel="cz_eduid"/>
</target>

<target name="flow.es_sir.import">
<CHANNEL.import channel="es_sir"/>
</target>

<target name="flow.fr_renater.import">
<CHANNEL.import channel="fr_renater"/>
</target>
Expand Down
61 changes: 61 additions & 0 deletions mdx/es_sir/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 production aggregate.
-->
<bean id="es_sir_productionAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="es_sir_productionAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="https://www.rediris.es/sir/shib1metadata.xml"/>
</bean>

<!--
Signing key.
-->
<bean id="es_sir_signingKey" class="net.shibboleth.ext.spring.factory.PublicKeyFactoryBean"
lazy-init="true">
<property name="publicKeyFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/es_sir/sirpubkey.pem"/>
</bean>
</property>
</bean>

<!--
Check signing signature.
-->
<bean id="es_sir_checkSignature" class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="es_sir_checkSignature"/>
<property name="verificationKey" ref="es_sir_signingKey"/>
</bean>

<!--
Fetch and process the exported entities as a collection.
-->
<bean id="es_sir_exportedEntities" class="net.shibboleth.metadata.pipeline.CompositeStage"
init-method="initialize" lazy-init="true">
<property name="id" value="es_sir_exportedEntities"/>
<property name="composedStages">
<list>
<!-- no export aggregate; use the production one instead -->
<ref bean="es_sir_productionAggregate"/>
<ref bean="es_sir_checkSignature"/>

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

<ref bean="disassemble"/>

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

</beans>
9 changes: 9 additions & 0 deletions mdx/es_sir/sirpubkey.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA09NWniyYzA2UzEiMuhBV
VqD/h1D3BNUtzNj96DDA7QQneuRYH5lNP4FD0GU5rbiD7/ST9n9I6jCciHWnS7+3
TuBzlGC+vBpi+84AW6Ln2Af8EKpuGVVS83CEZI50lTK3gKi+FXBdvVMg1mXozyaZ
YrOUHS/dhoSqQJaIsQFZpQ3OWTjQNtRl6VssWr9gyfuMn+DpcKVvdMPnNqUQfcKk
SlXKBxujw2fZ+fa4LfQOzJm7jUAoSqSdYXBo+VuCGZwJbPgjihIAtZ27Q39qzp82
nc6H49DIIGgjJJvgqA5rVT3LZmgGffl5njOHShPowlFFANkUHsdgRir/76yH1JNP
yQIDAQAB
-----END PUBLIC KEY-----
52 changes: 52 additions & 0 deletions mdx/es_sir/verbs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Verb definitions 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="serializeImported" class="net.shibboleth.metadata.pipeline.SerializationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="serializeImported"/>
<property name="serializer" ref="serializer"/>
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/es_sir/imported.xml"/>
</bean>
</property>
</bean>

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

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

</beans>

0 comments on commit c580aac

Please sign in to comment.