Package ndg :: Package xacml :: Package core :: Package context :: Module handlerinterface :: Class CtxHandlerInterface
[hide private]

Class CtxHandlerInterface

source code

object --+
         |
        CtxHandlerInterface
Known Subclasses:

Context Handler interface.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
None
handlePEPRequest(self, pepRequest)
Handle request from Policy Enforcement Point
source code
list
pipQuery(self, request, designator)
Query a Policy Information Point to retrieve the attribute values corresponding to the specified input designator.
source code

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

Class Variables [hide private]
  __abstractmethods__ = frozenset(['handlePEPRequest'])
  _abc_cache = <_weakrefset.WeakSet object at 0x101218d50>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x101218dd0>
  _abc_negative_cache_version = 10
  _abc_registry = <_weakrefset.WeakSet object at 0x101218cd0>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handlePEPRequest(self, pepRequest)

source code 

Handle request from Policy Enforcement Point

Parameters:
  • pepRequest (type) - request from PEP, derived class determines its type e.g. SAML AuthzDecisionQuery
Returns: None
PEP response - derived class determines type
Decorators:
  • @abstractmethod

pipQuery(self, request, designator)

source code 

Query a Policy Information Point to retrieve the attribute values corresponding to the specified input designator. Optionally, update the requestCtx. This could be a subject, environment or resource. Matching attributes values are returned

Parameters:
  • request (ndg.xacml.core.context.request.Request) - request context
  • designator (ndg.xacml.core.expression.Expression derived type) - designator requiring additional subject attribute information
Returns: list
list of attribute values for subject corresponding to given policy designator