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

Class AttributeElementTree

source code


ElementTree XML representation of SAML Attribute object. Extend to make Attribute types

Instance Methods [hide private]

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

Inherited from saml2.core.Attribute: BASIC, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, FRIENDLY_NAME_ATTRIB_NAME, NAME_ATTRIB_NAME, NAME_FORMAT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME, UNSPECIFIED, URI_REFERENCE

Properties [hide private]

Inherited from saml2.core.Attribute: attributeValues, friendlyName, name, nameFormat

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

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

source code 

Make a tree of a XML elements based on the Attribute

Parameters:
  • attribute (saml.saml2.core.Attribute) - Attribute 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 ElementTree element into a SAML Attribute object

Parameters:
  • elem (ElementTree.Element) - Attribute as ElementTree XML element
  • attributeValueElementTreeFactoryKw (dict) - keywords for AttributeValue factory
Returns: saml.saml2.core.Attribute
SAML Attribute
Overrides: common.SAMLObject.fromXML