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

Class NameIdElementTree

source code


Represent a SAML Name Identifier in XML using ElementTree

Instance Methods [hide private]

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

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

Inherited from saml2.core.AbstractNameIDType: EMAIL, ENCRYPTED, ENTITY, FORMAT_ATTRIB_NAME, KERBEROS, PERSISTENT, SPPROVIDED_ID_ATTRIB_NAME, SP_NAME_QUALIFIER_ATTRIB_NAME, TRANSIENT, UNSPECIFIED, WIN_DOMAIN_QUALIFIED, X509_SUBJECT

Properties [hide private]

Inherited from saml2.core.AbstractNameIDType: format, nameQualifier, spNameQualifier, spProvidedID, value

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, nameID)
Class Method

source code 

Create an XML representation of the input SAML Name Identifier object

Parameters:
  • nameID (saml.saml2.core.NameID) - SAML name ID
Returns: ElementTree.Element
Name ID as ElementTree XML element
Overrides: common.SAMLObject.toXML

fromXML(cls, elem)
Class Method

source code 

Parse ElementTree element into a SAML NameID object

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