36
Validating an Authentication Assertion
<Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion"
                  Version="2.0"
                  IssueInstant="2005-01-31T12:00:00Z"
                  ID="abe567de6">
    <Issuer>
        http://www.AirlineInc.com
    </Issuer>
    <Subject>
        <NameID Format="urn:oasis:names:tc:1.1:nameid-format:emailAddress">
            j.doe@acompany.com
        </NameID>
    </Subject>
    <Conditions NotBefore="2005-01-31T12:00:00Z"
                         NotOnOrAfter="2005-01-31T13:00:00Z">
    </Conditions>
    <AuthnStatement AuthnInstant="2005-01-29T09:32:00Z">
        <AuthnContext>
            <AuthnContextClassRef>
                urn:oasis:names:tc:SAML2.0:ac:classes:PasswordProtectedTransport
            </AuthnContextClassRef>
        </AuthnContext>
    </AuthnStatement>
</Assertion>
example01.saml.xml
<?xml version="1.0" encoding="US-ASCII"?>
<schema
    targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
    elementFormDefault="unqualified"
    attributeFormDefault="unqualified"
    blockDefault="substitution"
    version="2.0">
    <import namespace="http://www.w3.org/2000/09/xmldsig#"
        schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
    <import namespace="http://www.w3.org/2001/04/xmlenc#"
        schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/>
    <annotation>
        <documentation>
            Document identifier: saml-schema-assertion-2.0
            Location: http://docs.oasis-open.org/security/saml/v2.0/
            Revision history:
            V1.0 (November, 2002):
              Initial Standard Schema.
            V1.1 (September, 2003):
              Updates within the same V1.0 namespace.
            V2.0 (March, 2005):
              New assertion schema for SAML V2.0 namespace.
        </documentation>
    </annotation>
</simpleContent>
    </complexType>
    <complexType name="EncryptedElementType">
       
saml-schema-assertion-2.0.xsd
XML Schema
Validator
The assertion is syntactically correct!
See the example01 folder