Skip to content

Commit

Permalink
Add an mdx channel for nz_tuakiri.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jul 28, 2011
1 parent d3f09f8 commit ddfa72a
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@
<CHANNEL.import channel="jp_gakunin"/>
<CHANNEL.import channel="lv_laife"/>
<CHANNEL.import channel="nl_surfnet"/>
<CHANNEL.import channel="nz_tuakiri"/>
<CHANNEL.import channel="no_feide"/>
<CHANNEL.import channel="se_swamid"/>
<CHANNEL.import channel="si_arnes"/>
Expand Down
66 changes: 66 additions & 0 deletions mdx/nz_tuakiri/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?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="nz_tuakiri_productionAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="nz_tuakiri_productionAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="http://directory.test.tuakiri.ac.nz/metadata/tuakiri-test-metadata-signed.xml"/>
</bean>

<!--
Signing certificate.
-->
<bean id="nz_tuakiri_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/nz_tuakiri/tuakiri-test-metadata-cert.pem"/>
</bean>
</property>
</bean>

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

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

<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="nz_tuakiri_checkSignature"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

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

</beans>
28 changes: 28 additions & 0 deletions mdx/nz_tuakiri/tuakiri-test-metadata-cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN CERTIFICATE-----
MIIEyzCCA7OgAwIBAgICcCowDQYJKoZIhvcNAQEFBQAwgaMxCzAJBgNVBAYTAk5a
MREwDwYDVQQIEwhBdWNrbGFuZDERMA8GA1UEBxMIQXVja2xhbmQxEDAOBgNVBAoT
B1R1YWtpcmkxGTAXBgNVBAsTEE1ldGFkYXRhIHNpZ25pbmcxGzAZBgNVBAMTEnRl
c3QudHVha2lyaS5hYy5uejEkMCIGCSqGSIb3DQEJARYVc3VwcG9ydEB0dWFraXJp
LmFjLm56MB4XDTExMDMwMjIwNDgxNloXDTMxMDIyNTIwNDgxNlowgaMxCzAJBgNV
BAYTAk5aMREwDwYDVQQIEwhBdWNrbGFuZDERMA8GA1UEBxMIQXVja2xhbmQxEDAO
BgNVBAoTB1R1YWtpcmkxGTAXBgNVBAsTEE1ldGFkYXRhIHNpZ25pbmcxGzAZBgNV
BAMTEnRlc3QudHVha2lyaS5hYy5uejEkMCIGCSqGSIb3DQEJARYVc3VwcG9ydEB0
dWFraXJpLmFjLm56MIIBIjANBgkqhkiG9w0BAQEFAA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wuFr18ocsTsRKkQOnMmJ7Hc7fK7fa+vIOKXNulOaw==
-----END CERTIFICATE-----
52 changes: 52 additions & 0 deletions mdx/nz_tuakiri/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/nz_tuakiri/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="nz_tuakiri_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="nz_tuakiri_productionAggregate"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

</beans>

0 comments on commit ddfa72a

Please sign in to comment.