Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Add some beans to permit using the UK channel for input as well as ou…
Browse files Browse the repository at this point in the history
…tput.
  • Loading branch information
iay committed Feb 21, 2013
1 parent 3e0c5eb commit 8938aaa
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
82 changes: 82 additions & 0 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<!--
Location of various resources.
-->
<bean id="uk_productionAggregate_url" class="java.lang.String">
<constructor-arg value="http://metadata.ukfederation.org.uk/ukfederation-metadata.xml"/>
</bean>
<bean id="uk_exportAggregate_url" class="java.lang.String">
<constructor-arg value="http://metadata.ukfederation.org.uk/ukfederation-metadata.xml"/>
</bean>


<!--
uk_federation_uri
Expand All @@ -28,6 +39,77 @@
</bean>


<!--
Fetch the export aggregate.
-->
<bean id="uk_exportAggregate" parent="domResourceStage_parent"
p:id="uk_exportAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="uk_exportAggregate_url"/>
</bean>
</property>
</bean>


<!--
Fetch the production aggregate.
-->
<bean id="uk_productionAggregate" parent="domResourceStage_parent"
p:id="uk_productionAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="uk_productionAggregate_url"/>
</bean>
</property>
</bean>


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


<!--
Check the signature on a document.
-->
<bean id="uk_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
p:id="uk_checkSignature">
<property name="verificationCertificate" ref="uk_signingCertificate"/>
</bean>


<!--
uk_check_validUntil
Check that an aggregate has a validUntil instant specified, and that it has not
yet expired. Sets a bound of 30 days on the validity interval; 14 days is the
expected value.
-->
<bean id="uk_check_validUntil" parent="stage_parent"
class="net.shibboleth.metadata.dom.saml.ValidateValidUntilStage"
p:id="uk_check_validUntil">
<!--
The validUntil attribute must be present.
-->
<property name="requireValidUntil" value="true"/>
<!--
Validity interval must not exceed 30 days.
-->
<property name="maxValidityInterval" value="#{ 1000L * 60 * 60 * 24 * 30 }"/>
</bean>


<!--
uk_fetchFragmentFiles
Expand Down
23 changes: 23 additions & 0 deletions mdx/uk/metadata-signer.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-----BEGIN CERTIFICATE-----
MIIDxzCCAq+gAwIBAgIJANixLkdCTNtvMA0GCSqGSIb3DQEBBQUAMHoxCzAJBgNV
BAYTAkdCMUMwQQYDVQQKDDpVSyBBY2Nlc3MgTWFuYWdlbWVudCBGZWRlcmF0aW9u
IGZvciBFZHVjYXRpb24gYW5kIFJlc2VhcmNoMSYwJAYDVQQDDB1VSyBGZWRlcmF0
aW9uIE1ldGFkYXRhIFNpZ25lcjAeFw0xMjEwMTEwNzA4MThaFw0xNDExMTYwNzA4
MThaMHoxCzAJBgNVBAYTAkdCMUMwQQYDVQQKDDpVSyBBY2Nlc3MgTWFuYWdlbWVu
dCBGZWRlcmF0aW9uIGZvciBFZHVjYXRpb24gYW5kIFJlc2VhcmNoMSYwJAYDVQQD
DB1VSyBGZWRlcmF0aW9uIE1ldGFkYXRhIFNpZ25lcjCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAOqtfMvCmBuQudC4/jZFPYkHDNHFyp1FA3KJihIUXppF
vrecrO2wG5CpyqB1mZ+MlKf4jKcTMGBIXC2klD+FyrEdJMBhO6vRm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