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

Class ActionElementTree

source code


Represent a SAML authorization action in XML using ElementTree

Instance Methods [hide private]

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

Inherited from saml2.core.Action: ACTION_NS_IDENTIFIERS, ACTION_TYPES, CONTROL_ACTION, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, DELETE_ACTION, EXECUTE_ACTION, GHPP_NS_URI, HTTP_GET_ACTION, HTTP_HEAD_ACTION, HTTP_POST_ACTION, HTTP_PUT_ACTION, NAMESPACE_ATTRIB_NAME, NEG_CONTROL_ACTION, NEG_DELETE_ACTION, NEG_EXECUTE_ACTION, NEG_READ_ACTION, NEG_WRITE_ACTION, READ_ACTION, RWEDC_NEGATION_NS_URI, RWEDC_NS_URI, TYPE_LOCAL_NAME, TYPE_NAME, UNIX_NS_URI, WRITE_ACTION

Properties [hide private]

Inherited from saml2.core.Action: actionTypes, namespace, value

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, action)
Class Method

source code 

Create an XML representation of the input SAML Name Identifier object

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

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