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

Class AttributeQueryElementTree

source code


Represent a SAML Attribute Query in XML using ElementTree

Instance Methods [hide private]

Inherited from saml2.core.AttributeQuery: __getstate__, __init__

Inherited from saml2.core.SubjectQuery (private): _getSubject, _setSubject

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

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

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

Properties [hide private]

Inherited from saml2.core.AttributeQuery: attributes

Inherited from saml2.core.SubjectQuery: subject

Inherited from saml2.core.RequestAbstractType: consent, destination, extensions, id, issueInstant, issuer, version

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

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

source code 

Create an XML representation of the input SAML Attribute Query object

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

fromXML(cls, elem)
Class Method

source code 

Parse ElementTree element into a SAML AttributeQuery object

Parameters:
  • elem (ElementTree.Element) - XML element containing the AttributeQuery
Returns: saml.saml2.core.AttributeQuery
AttributeQuery object
Overrides: common.SAMLObject.fromXML