Package ndg :: Package xacml :: Package test :: Package context :: Class TestContextHandler
[hide private]

Class TestContextHandler

source code

                                       object --+        
                                                |        
core.context.handlerinterface.CtxHandlerInterface --+    
                                                    |    
                  core.context.handler.CtxHandlerBase --+
                                                        |
                                                       TestContextHandler

Test implementation of Context Handler which includes an implemented PIP interface

Nested Classes [hide private]

Inherited from core.context.handlerinterface.CtxHandlerInterface: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Add an attribute to hold a reference to a policy information point
source code
None
handlePEPRequest(self, myRequest)
Handle request from Policy Enforcement Point
source code
list
pipQuery(self, request, designator)
PIP adds admin attribute value for given attribute ID and for any subject
source code

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

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
Properties [hide private]

Inherited from core.context.handler.CtxHandlerBase: pdp, pip

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Add an attribute to hold a reference to a policy information point

Overrides: object.__init__

handlePEPRequest(self, myRequest)

source code 

Handle request from Policy Enforcement Point

Parameters:
  • pepRequest - request from PEP, derived class determines its type e.g. SAML AuthzDecisionQuery
  • myRequest (type)
Returns: None
PEP response - derived class determines type
Overrides: core.context.handlerinterface.CtxHandlerInterface.handlePEPRequest

pipQuery(self, request, designator)

source code 

PIP adds admin attribute value for given attribute ID and for any subject

Parameters:
  • request - request context
  • designator - designator requiring additional subject attribute information
Returns: list
list of attribute values for subject corresponding to given policy designator
Overrides: core.context.handlerinterface.CtxHandlerInterface.pipQuery