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

Class DecisionType

source code


Define decision types for the authorisation decisions

Instance Methods [hide private]
 
__init__(self, decisionType)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
__getstate__(self)
Enable pickling
source code
 
__setstate__(self, attrDict)
Enable pickling
source code
 
_setValue(self, value)
Set decision type
source code
string/ndg.saml.saml2.core.DecisionType
_getValue(self)
Get decision type
source code
string
__str__(self)
Representation of decision type as a string
source code
bool
__eq__(self, decision)
Test for equality against an input decision type
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
string PERMIT_STR = 'Permit'
"Permit" decision type
string DENY_STR = 'Deny'
"Deny" decision type
string INDETERMINATE_STR = 'Indeterminate'
"Indeterminate" decision type
string TYPES = ('Permit', 'Deny', 'Indeterminate')
Permissable type strings
ndg.saml.saml2.core.PermitDecisionType PERMIT = PermitDecisionType()
permit as a decision type subclass
ndg.saml.saml2.core.DenyDecisionType DENY = DenyDecisionType()
deny as a decision type subclass
ndg.saml.saml2.core.IndeterminateDecisionType INDETERMINATE = IndeterminateDecisionType()
indeterminate as a decision type subclass
Instance Variables [hide private]
string __value
decision value
Properties [hide private]
  value
Decision value

Inherited from object: __class__

Method Details [hide private]

__init__(self, decisionType)
(Constructor)

source code 

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

Parameters:
  • decisionType (string/ndg.saml.saml2.core.DecisionType) - decision value
Overrides: object.__init__

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary

__setstate__(self, attrDict)

source code 

Enable pickling

Parameters:
  • attrDict (dict) - object's attribute dictionary

_setValue(self, value)

source code 

Set decision type

Parameters:
  • value (string/ndg.saml.saml2.core.DecisionType) - decision value

_getValue(self)

source code 

Get decision type

Returns: string/ndg.saml.saml2.core.DecisionType
decision value

__str__(self)
(Informal representation operator)

source code 

Representation of decision type as a string

Returns: string
decision value
Overrides: object.__str__

__eq__(self, decision)
(Equality operator)

source code 

Test for equality against an input decision type

Parameters:
  • decision (ndg.saml.saml2.core.DecisionType or basestring) - decision type
Returns: bool
True if input and this object match
Raises:
  • TypeError - unexpected type for decision type input

Property Details [hide private]

value

Decision value

Get Method:
_getValue(self) - Get decision type
Set Method:
_setValue(self, value) - Set decision type