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

Class SubjectElementTree

source code


Represent a SAML Subject in XML using ElementTree

Instance Methods [hide private]

Inherited from saml2.core.Subject: __getstate__, __init__, getOrderedChildren

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

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

Properties [hide private]

Inherited from saml2.core.Subject: baseID, encryptedID, nameID, subjectConfirmations

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, subject)
Class Method

source code 

Create an XML representation of the input SAML subject object

Parameters:
  • subject (saml.saml2.core.Subject) - 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 Subject object

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