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

Class StatusElementTree

source code


Represent a SAML Status in XML using ElementTree

Instance Methods [hide private]

Inherited from saml2.core.Status: __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, status)
Create an XML representation of the input SAML subject object
source code
saml.saml2.core.Status
fromXML(cls, elem)
Parse ElementTree element into a SAML Status object
source code
Class Variables [hide private]

Inherited from saml2.core.Status: DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME

Properties [hide private]

Inherited from saml2.core.Status: statusCode, statusDetail, statusMessage

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, status)
Class Method

source code 

Create an XML representation of the input SAML subject object

Parameters:
  • status (saml.saml2.core.Status) - SAML subject
Returns: ElementTree.Element
subject as ElementTree XML element
Overrides: common.SAMLObject.toXML

fromXML(cls, elem)
Class Method

source code 

Parse ElementTree element into a SAML Status object

Parameters:
  • elem (ElementTree.Element) - subject as ElementTree XML element
Returns: saml.saml2.core.Status
SAML subject
Overrides: common.SAMLObject.fromXML