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

Class ResponseElementTree

source code


Represent a SAML Response in XML using ElementTree

Instance Methods [hide private]

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

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

Inherited from saml2.core.StatusResponseType: CONSENT_ATTRIB_NAME, DESTINATION_ATTRIB_NAME, EXPLICIT_CONSENT, ID_ATTRIB_NAME, IMPLICIT_CONSENT, INAPPLICABLE_CONSENT, IN_RESPONSE_TO_ATTRIB_NAME, ISSUE_INSTANT_ATTRIB_NAME, OBTAINED_CONSENT, PRIOR_CONSENT, UNAVAILABLE_CONSENT, UNSPECIFIED_CONSENT, VERSION_ATTRIB_NAME

Properties [hide private]

Inherited from saml2.core.Response: assertions

Inherited from saml2.core.StatusResponseType: consent, destination, extensions, id, inResponseTo, issueInstant, issuer, status, version

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

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

source code 

Create an XML representation of the input SAML Response object

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

fromXML(cls, elem, **attributeValueElementTreeFactoryKw)
Class Method

source code 

Parse ElementTree element into a SAML Response object

Parameters:
  • elem (ElementTree.Element) - XML element containing the Response
  • attributeValueElementTreeFactoryKw (dict) - keywords for AttributeValue
Returns: saml.saml2.core.Response
Response object
Overrides: common.SAMLObject.fromXML