Package ndg :: Package xacml :: Package core :: Module policy_combining_alg :: Class PolicyCombiningAlgClassFactory
[hide private]

Class PolicyCombiningAlgClassFactory

source code

object --+
         |
        PolicyCombiningAlgClassFactory

Class Factory mapping Policy Combining Algorithm identifiers to their class implementations

Instance Methods [hide private]
 
__init__(self, map={'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny...)
Initialise mapping of identifiers to class implementations
source code
PolicyCombiningAlgInterface derived type or NoneType if no match is found or NotImplementedType if the identifier corresponds to a valid XACML policy combining algorithm but is not supported in this implementation
__call__(self, identifier)
Return the class for a given Policy Combining Algorithm identifier
source code

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

Class Variables [hide private]
  DEFAULT_MAP = {'urn:oasis:names:tc:xacml:1.0:policy-combining-...
Properties [hide private]
  __map

Inherited from object: __class__

Method Details [hide private]

__init__(self, map={'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny...)
(Constructor)

source code 

Initialise mapping of identifiers to class implementations

Parameters:
  • map - mapping of policy combining algorithms IDs to classes. Set this to override the default taken from the DEFAULT_MAP class variable
Overrides: object.__init__

__call__(self, identifier)
(Call operator)

source code 

Return the class for a given Policy Combining Algorithm identifier

Parameters:
  • identifier (basestring) - XACML policy combining algorithm urn
Returns: PolicyCombiningAlgInterface derived type or NoneType if no match is found or NotImplementedType if the identifier corresponds to a valid XACML policy combining algorithm but is not supported in this implementation
policy combining class corresponding to the given input identifier

Class Variable Details [hide private]

DEFAULT_MAP

Value:
{'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrid\
es': <class 'ndg.xacml.core.policy_combining_alg.DenyOverridesPolicyCo\
mbiningAlg'>,
 'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:first-applic\
able': <class 'ndg.xacml.core.policy_combining_alg.FirstApplicablePoli\
cyCombiningAlg'>,
 'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:only-one-app\
licable': NotImplemented,
...