Package ndg :: Package saml :: Package saml2 :: Module core :: Class StatusCode
[hide private]

Class StatusCode

source code


Implementation of SAML 2.0 StatusCode.

Instance Methods [hide private]
 
__init__(self, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
__getstate__(self)
Enable pickling
source code
ndg.saml.saml2.core.StatusCode
_getStatusCode(self)
Get child status code
source code
 
_setStatusCode(self, value)
Set child status code
source code
basestring
_getValue(self)
Get status message
source code
 
_setValue(self, value)
Set status message
source code

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]

Inherited from common.SAMLObject: fromXML, toXML

Class Variables [hide private]
None DEFAULT_ELEMENT_LOCAL_NAME = 'StatusCode'
default XML element name - derived classes must specify
ndg.saml.common.xml.QName DEFAULT_ELEMENT_NAME = QName(SAMLConstants.SAML20P_NS, DEFAULT...
Default element name.
string TYPE_LOCAL_NAME = 'StatusCodeType'
Local name of the XSI type.
ndg.saml.common.xml.QName TYPE_NAME = QName(SAMLConstants.SAML20P_NS, TYPE_LOCAL_NAME, S...
QName of the XSI type.
string VALUE_ATTRIB_NAME = 'Value'
Local Name of the Value attribute.
string SUCCESS_URI = 'urn:oasis:names:tc:SAML:2.0:status:Success'
URI for Success status code.
string REQUESTER_URI = 'urn:oasis:names:tc:SAML:2.0:status:Requester'
URI for Requester status code.
string RESPONDER_URI = 'urn:oasis:names:tc:SAML:2.0:status:Responder'
URI for Responder status code.
string VERSION_MISMATCH_URI = 'urn:oasis:names:tc:SAML:2.0:status:Ver...
URI for VersionMismatch status code.
string AUTHN_FAILED_URI = 'urn:oasis:names:tc:SAML:2.0:status:AuthnFa...
URI for AuthnFailed status code.
string INVALID_ATTR_NAME_VALUE_URI = 'urn:oasis:names:tc:SAML:2.0:sta...
URI for InvalidAttrNameOrValue status code.
string INVALID_NAMEID_POLICY_URI = 'urn:oasis:names:tc:SAML:2.0:statu...
URI for InvalidNameIDPolicy status code.
string NO_AUTHN_CONTEXT_URI = 'urn:oasis:names:tc:SAML:2.0:status:NoA...
URI for NoAuthnContext status code.
string NO_AVAILABLE_IDP_URI = 'urn:oasis:names:tc:SAML:2.0:status:NoA...
URI for NoAvailableIDP status code.
string NO_PASSIVE_URI = 'urn:oasis:names:tc:SAML:2.0:status:NoPassive'
URI for NoPassive status code.
string NO_SUPPORTED_IDP_URI = 'urn:oasis:names:tc:SAML:2.0:status:NoS...
URI for NoSupportedIDP status code.
string PARTIAL_LOGOUT_URI = 'urn:oasis:names:tc:SAML:2.0:status:Parti...
URI for PartialLogout status code.
string PROXY_COUNT_EXCEEDED_URI = 'urn:oasis:names:tc:SAML:2.0:status...
URI for ProxyCountExceeded status code.
string REQUEST_DENIED_URI = 'urn:oasis:names:tc:SAML:2.0:status:Reque...
URI for RequestDenied status code.
string REQUEST_UNSUPPORTED_URI = 'urn:oasis:names:tc:SAML:2.0:status:...
URI for RequestUnsupported status code.
string REQUEST_VERSION_DEPRECATED_URI = 'urn:oasis:names:tc:SAML:2.0:...
URI for RequestVersionDeprecated status code.
string REQUEST_VERSION_TOO_HIGH_URI = 'urn:oasis:names:tc:SAML:2.0:st...
URI for RequestVersionTooHigh status code.
string REQUEST_VERSION_TOO_LOW_URI = 'urn:oasis:names:tc:SAML:2.0:sta...
URI for RequestVersionTooLow status code.
string RESOURCE_NOT_RECOGNIZED_URI = 'urn:oasis:names:tc:SAML:2.0:sta...
URI for ResourceNotRecognized status code.
string TOO_MANY_RESPONSES = 'urn:oasis:names:tc:SAML:2.0:status:TooMa...
URI for TooManyResponses status code.
string UNKNOWN_ATTR_PROFILE_URI = 'urn:oasis:names:tc:SAML:2.0:status...
URI for UnknownAttrProfile status code.
string UNKNOWN_PRINCIPAL_URI = 'urn:oasis:names:tc:SAML:2.0:status:Un...
URI for UnknownPrincipal status code.
string UNSUPPORTED_BINDING_URI = 'urn:oasis:names:tc:SAML:2.0:status:...
URI for UnsupportedBinding status code.
Instance Variables [hide private]
  __childStatusCode
child element status code value
  __value
status code value
Properties [hide private]
  value
Status code value

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • kw (dict) - keywords to initialise superclass attributes
Overrides: object.__init__

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary
Overrides: common.SAMLObject.__getstate__

_getStatusCode(self)

source code 

Get child status code

Returns: ndg.saml.saml2.core.StatusCode
status code value

_setStatusCode(self, value)

source code 

Set child status code

Parameters:
  • value (ndg.saml.saml2.core.StatusCode) - status code value

_getValue(self)

source code 

Get status message

Returns: basestring
message text

_setValue(self, value)

source code 

Set status message

Parameters:
  • value (basestring) - message text

Class Variable Details [hide private]

DEFAULT_ELEMENT_NAME

Default element name.
Type:
ndg.saml.common.xml.QName
Value:
QName(SAMLConstants.SAML20P_NS, DEFAULT_ELEMENT_LOCAL_NAME, SAMLConsta\
nts.SAML20P_PREFIX)

TYPE_NAME

QName of the XSI type.
Type:
ndg.saml.common.xml.QName
Value:
QName(SAMLConstants.SAML20P_NS, TYPE_LOCAL_NAME, SAMLConstants.SAML20P\
_PREFIX)

VERSION_MISMATCH_URI

URI for VersionMismatch status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:VersionMismatch'

AUTHN_FAILED_URI

URI for AuthnFailed status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:AuthnFailed'

INVALID_ATTR_NAME_VALUE_URI

URI for InvalidAttrNameOrValue status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:InvalidAttrNameOrValue'

INVALID_NAMEID_POLICY_URI

URI for InvalidNameIDPolicy status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy'

NO_AUTHN_CONTEXT_URI

URI for NoAuthnContext status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext'

NO_AVAILABLE_IDP_URI

URI for NoAvailableIDP status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:NoAvailableIDP'

NO_SUPPORTED_IDP_URI

URI for NoSupportedIDP status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:NoSupportedIDP'

PARTIAL_LOGOUT_URI

URI for PartialLogout status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:PartialLogout'

PROXY_COUNT_EXCEEDED_URI

URI for ProxyCountExceeded status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:ProxyCountExceeded'

REQUEST_DENIED_URI

URI for RequestDenied status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:RequestDenied'

REQUEST_UNSUPPORTED_URI

URI for RequestUnsupported status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:RequestUnsupported'

REQUEST_VERSION_DEPRECATED_URI

URI for RequestVersionDeprecated status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:RequestVersionDeprecated'

REQUEST_VERSION_TOO_HIGH_URI

URI for RequestVersionTooHigh status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooHigh'

REQUEST_VERSION_TOO_LOW_URI

URI for RequestVersionTooLow status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooLow'

RESOURCE_NOT_RECOGNIZED_URI

URI for ResourceNotRecognized status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:ResourceNotRecognized'

TOO_MANY_RESPONSES

URI for TooManyResponses status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:TooManyResponses'

UNKNOWN_ATTR_PROFILE_URI

URI for UnknownAttrProfile status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:UnknownAttrProfile'

UNKNOWN_PRINCIPAL_URI

URI for UnknownPrincipal status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal'

UNSUPPORTED_BINDING_URI

URI for UnsupportedBinding status code.
Type:
string
Value:
'urn:oasis:names:tc:SAML:2.0:status:UnsupportedBinding'

Property Details [hide private]

value

Status code value

Get Method:
_getValue(self) - Get status message
Set Method:
_setValue(self, value) - Set status message