Skip to content

Commit

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

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

<target name="flow.ie_edugate.import">
<CHANNEL.import channel="ie_edugate"/>
</target>
Expand Down
61 changes: 61 additions & 0 deletions mdx/hu_eduid/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="hu_eduid_productionAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="hu_eduid_productionAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="https://metadata.eduid.hu/metadata.xml"/>
</bean>

<!--
Metadata signing certificate.
-->
<bean id="hu_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/hu_eduid/href-metadata-signer-2010.crt"/>
</bean>
</property>
</bean>

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

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

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

<ref bean="disassemble"/>

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

</beans>
31 changes: 31 additions & 0 deletions mdx/hu_eduid/href-metadata-signer-2010.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN CERTIFICATE-----
MIIFOjCCBCKgAwIBAgICBFIwDQYJKoZIhvcNAQEFBQAwVTELMAkGA1UEBhMCSFUx
DTALBgNVBAoTBE5JSUYxIDAeBgNVBAsTF0NlcnRpZmljYXRlIEF1dGhvcml0aWVz
MRUwEwYDVQQDEwxOSUlGIFJvb3QgQ0EwHhcNMTAwNDMwMTEzNTE0WhcNMTEwNDMw
MTEzNTE0WjCBhjELMAkGA1UEBhMCSFUxEDAOBgNVBAoTB05JSUYgQ0ExFzAVBgNV
BAoTDk5JSUYgSW5zdGl0dXRlMQwwCgYDVQQLEwNBQUkxIjAgBgNVBAMTGUhSRUYg
TWV0YWRhdGEgU2lnbmVyIDIwMTAxGjAYBgkqhkiG9w0BCQEWC2FhaUBuaWlmLmh1
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv2Nz7/LOH+ooA62ZEUVO
jd1Bp0ZM1z8CqtzGDTfkCWbBaeBjOHRPISdBQWADUYjxvIlmszlvcI6cXGvk0XGt
Dzr3scTu9hZ2U9+r2KpqKdhrh0+Aq+rkVLZSvXF5fyAg2j+3juajurDAQhpFU323
E52QLnY0un22NIQcBqkDOJqQQgkNV5kPpschHDOpHnSj3E9Ebs1qqLr9F6WMsKso
U5aMLID0qRF3tVDVg6X9YlWb5k6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yj
pUl5esFH29NbQLxQH/QJh/C0BHUOSewqlWi/BAzhdO+S3Fur5A6gBkdsRMImPg==
-----END CERTIFICATE-----

41 changes: 41 additions & 0 deletions mdx/hu_eduid/verbs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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/hu_eduid/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="hu_eduid_exportedEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

</beans>

0 comments on commit 3d82c54

Please sign in to comment.