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

Class StatusCodeElementTree

source code


Represent a SAML Status Code in XML using ElementTree

Instance Methods [hide private]

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

Inherited from saml2.core.StatusCode: AUTHN_FAILED_URI, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, INVALID_ATTR_NAME_VALUE_URI, INVALID_NAMEID_POLICY_URI, NO_AUTHN_CONTEXT_URI, NO_AVAILABLE_IDP_URI, NO_PASSIVE_URI, NO_SUPPORTED_IDP_URI, PARTIAL_LOGOUT_URI, PROXY_COUNT_EXCEEDED_URI, REQUESTER_URI, REQUEST_DENIED_URI, REQUEST_UNSUPPORTED_URI, REQUEST_VERSION_DEPRECATED_URI, REQUEST_VERSION_TOO_HIGH_URI, REQUEST_VERSION_TOO_LOW_URI, RESOURCE_NOT_RECOGNIZED_URI, RESPONDER_URI, SUCCESS_URI, TOO_MANY_RESPONSES, TYPE_LOCAL_NAME, TYPE_NAME, UNKNOWN_ATTR_PROFILE_URI, UNKNOWN_PRINCIPAL_URI, UNSUPPORTED_BINDING_URI, VALUE_ATTRIB_NAME, VERSION_MISMATCH_URI

Properties [hide private]

Inherited from saml2.core.StatusCode: value

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

toXML(cls, statusCode)
Class Method

source code 

Create an XML representation of the input SAML Name Status Code

Parameters:
  • statusCode (saml.saml2.core.StatusCode) - SAML Status Code
Returns: ElementTree.Element
Status Code as ElementTree XML element
Overrides: common.SAMLObject.toXML

fromXML(cls, elem)
Class Method

source code 

Parse ElementTree element into a SAML StatusCode object

Parameters:
  • elem (ElementTree.Element) - Status Code as ElementTree XML element
Returns: saml.saml2.core.StatusCode
SAML Status Code
Overrides: common.SAMLObject.fromXML