Package ndg :: Package saml :: Package xml :: Module etree :: Class AssertionElementTree
[hide private]

Class AssertionElementTree

source code


ElementTree based XML representation of Assertion class

Instance Methods [hide private]

Inherited from saml2.core.Assertion: __getstate__, __init__

Inherited from common.SAMLObject: __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
ElementTree.Element
toXML(cls, assertion, **attributeValueElementTreeFactoryKw)
Make a tree of a XML elements based on the assertion
source code
saml.saml2.core.Assertion
fromXML(cls, elem, **attributeValueElementTreeFactoryKw)
Parse an ElementTree representation of an Assertion into an Assertion object
source code
Class Variables [hide private]

Inherited from saml2.core.Assertion: DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUE_INSTANT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME, VERSION_ATTRIB_NAME

Properties [hide private]

Inherited from saml2.core.Assertion: advice, attributeStatements, authnStatements, authzDecisionStatements, conditions, id, issueInstant, issuer, statements, subject, version

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, assertion, **attributeValueElementTreeFactoryKw)
Class Method

source code 

Make a tree of a XML elements based on the assertion

Parameters:
  • assertion (saml.saml2.core.Assertion) - Assertion to be represented as an ElementTree Element
  • attributeValueElementTreeFactoryKw (dict) - keywords for AttributeValue factory
Returns: ElementTree.Element
ElementTree Element
Overrides: common.SAMLObject.toXML

fromXML(cls, elem, **attributeValueElementTreeFactoryKw)
Class Method

source code 

Parse an ElementTree representation of an Assertion into an Assertion object

Parameters:
  • elem (ElementTree.Element) - ElementTree element containing the assertion
  • attributeValueElementTreeFactoryKw (dict) - keywords for AttributeValue
Returns: saml.saml2.core.Assertion
Assertion object
Overrides: common.SAMLObject.fromXML