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

Class ConditionsElementTree

source code


ElementTree based XML representation of Conditions class

Instance Methods [hide private]

Inherited from saml2.core.Conditions: __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, conditions)
Make a tree of a XML elements based on the assertion conditions
source code
saml.saml2.core.Conditions
fromXML(cls, elem)
Parse an ElementTree SAML Conditions element into an Conditions object
source code
Class Variables [hide private]

Inherited from saml2.core.Conditions: DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOT_BEFORE_ATTRIB_NAME, NOT_ON_OR_AFTER_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME

Instance Variables [hide private]

Inherited from saml2.core.Conditions: self.__conditions, self.__notBefore, self.__notOnOrAfter

Properties [hide private]

Inherited from saml2.core.Conditions: conditions, notBefore, notOnOrAfter

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, conditions)
Class Method

source code 

Make a tree of a XML elements based on the assertion conditions

Parameters:
  • conditions (saml.saml2.core.Conditions) - Assertion conditions to be represented as an ElementTree Element
Returns: ElementTree.Element
ElementTree Element
Overrides: common.SAMLObject.toXML

fromXML(cls, elem)
Class Method

source code 

Parse an ElementTree SAML Conditions element into an Conditions object

Parameters:
  • elem (ElementTree.Element) - ElementTree element containing the conditions
Returns: saml.saml2.core.Conditions
Conditions object
Overrides: common.SAMLObject.fromXML