zxid
view release on metacpan or search on metacpan
sg/saml-schema-assertion-2.0.sg view on Meta::CPAN
# zxid/sg/saml-schema-assertion-2.0.sg
# $Id: saml-schema-assertion-2.0.sg,v 1.10 2009-11-14 22:44:43 sampo Exp $
#
# N.B. This file is not a direct conversion. Instead it has been manually edited to
# make it simpler and to facilitate code generation.
# 15.10.2006, extended AttributeValue schema to cater for bootstrap, Sampo Kellomaki (sampo@iki.fi)
# 10.2.2007, added other types of assertions as potential Advice content --Sampo
# 3.3.2007, added XACML support --Sampo
# 24.8.2009, modified sa:Statement to be able to carry xac:Response --Sampo
target(sa, urn:oasis:names:tc:SAML:2.0:assertion)
ns(xs,http://www.w3.org/2001/XMLSchema)
import(ds,http://www.w3.org/2000/09/xmldsig#,http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd)
import(xenc,http://www.w3.org/2001/04/xmlenc#,http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd)
ns(di12, urn:liberty:disco:2003-08)
ns(a, http://www.w3.org/2005/08/addressing)
ns(sa11, urn:oasis:names:tc:SAML:1.0:assertion)
ns(ff12, urn:liberty:iff:2003-08)
ns(xasa, urn:oasis:xacml:2.0:saml:assertion:schema:os)
ns(xasacd1, urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:assertion:cd-01)
ns(xac, urn:oasis:names:tc:xacml:2.0:context:schema:os)
ns(xsi, http://www.w3.org/2001/XMLSchema-instance)
ns(idp, urn:liberty:idp:2006-12)
&@IDNameQualifiers:
@NameQualifier? -> %xs:string
@SPNameQualifier? -> %xs:string
;
BaseID -> %sa:BaseIDAbstractType
%BaseIDAbstractType:
&@sa:IDNameQualifiers
;
NameID -> %sa:NameIDType
%NameIDType: base(xs:string)
@Format? -> %xs:anyURI
&@sa:IDNameQualifiers
@SPProvidedID? -> %xs:string
;
%EncryptedElementType:
xenc:EncryptedData
xenc:EncryptedKey*
;
EncryptedID -> %sa:EncryptedElementType
Issuer -> %sa:NameIDType
AssertionIDRef -> %xs:NCName
AssertionURIRef -> %xs:anyURI
Assertion -> %sa:AssertionType
%AssertionType:
sa:Issuer
ds:Signature?
sa:Subject?
sa:Conditions?
sa:Advice?
sa:Statement* # *** how to express * for choice
sa:AuthnStatement*
sa:AuthzDecisionStatement*
sa:AttributeStatement*
xasa:XACMLAuthzDecisionStatement*
xasa:XACMLPolicyStatement*
xasacd1:XACMLAuthzDecisionStatement*
xasacd1:XACMLPolicyStatement*
@ID -> %xs:ID
@IssueInstant -> %xs:dateTime
@Version -> %xs:string
;
Subject -> %sa:SubjectType
%SubjectType:
( run in 1.087 second using v1.01-cache-2.11-cpan-71847e10f99 )