Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-meta/mdx/_rules/check_mdiop.xsl
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

From commit hash ukf/ukf-testbed/89589a98aea5c51a2cbd859d45f6bc08e0a00a67 See ukf/ukf-meta#416 for details
45 lines (36 sloc)
1.46 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
check_mdiop.xsl | |
Checking ruleset containing rules associated with the SAML V2.0 Metadata | |
Interoperability Profile, see: | |
http://wiki.oasis-open.org/security/SAML2MetadataIOP | |
Author: Ian A. Young <ian@iay.org.uk> | |
--> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | |
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> | |
<!-- | |
Common support functions. | |
--> | |
<xsl:import href="check_framework.xsl"/> | |
<!-- | |
Section 2.5.1: at least one representation must appear. | |
--> | |
<xsl:template match="md:KeyDescriptor | |
[not((ds:KeyInfo/ds:KeyValue) or (ds:KeyInfo/ds:X509Data/ds:X509Certificate))]"> | |
<xsl:call-template name="error"> | |
<xsl:with-param name="m">KeyDescriptor does not contain a key representation</xsl:with-param> | |
</xsl:call-template> | |
</xsl:template> | |
<!-- | |
Section 2.5.1: only one X.509 certificate may appear in any KeyDescriptor. | |
--> | |
<xsl:template match="md:KeyDescriptor[count(ds:KeyInfo/ds:X509Data/ds:X509Certificate)>1]"> | |
<xsl:call-template name="error"> | |
<xsl:with-param name="m">KeyDescriptor contains more than one X509Certificate</xsl:with-param> | |
</xsl:call-template> | |
</xsl:template> | |
</xsl:stylesheet> |