Changeset 7336
- Timestamp:
- 18/08/10 10:07:40 (11 years ago)
- Location:
- TI12-security/trunk/ndg_xacml/ndg/xacml/core/context
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/handler.py
r7331 r7336 1 """NDG Security Context handler definition1 """NDG Security Context handler base class 2 2 3 3 NERC DataGrid … … 10 10 __contact__ = "Philip.Kershaw@stfc.ac.uk" 11 11 __revision__ = "$Id$" 12 from abc import ABCMeta, abstractmethod 13 12 from ndg.xacml.core.context.handlerinterface import CtxHandlerInterface 14 13 from ndg.xacml.core.context.pdpinterface import PDPInterface 15 14 from ndg.xacml.core.context.pipinterface import PIPInterface 16 17 18 class CtxHandlerInterface(object):19 """Context Handler interface."""20 __metaclass__ = ABCMeta21 __slots__ = ()22 23 @abstractmethod24 def handlePEPRequest(self, pepRequest):25 """Handle request from Policy Enforcement Point26 27 @param pepRequest: request from PEP, derived class determines its type28 e.g. SAML AuthzDecisionQuery29 @type pepRequest: type30 @return: PEP response - derived class determines type31 @rtype: None32 """33 raise NotImplementedError()34 35 def pipQuery(self, request, designator):36 """Query a Policy Information Point to retrieve the attribute values37 corresponding to the specified input designator. Optionally, update the38 requestCtx. This could be a subject, environment or resource. Matching39 attributes values are returned40 41 @param request: request context42 @type request: ndg.xacml.core.context.request.Request43 @param designator: designator requiring additional subject attribute44 information45 @type designator: ndg.xacml.core.expression.Expression derived type46 @return: list of attribute values for subject corresponding to given47 policy designator48 @rtype: list49 """50 return []51 15 52 16 -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/request.py
r7331 r7336 19 19 from ndg.xacml.core.context.action import Action 20 20 from ndg.xacml.core.context.environment import Environment 21 from ndg.xacml.core.context.handler import CtxHandlerInterface21 from ndg.xacml.core.context.handlerinterface import CtxHandlerInterface 22 22 23 23
Note: See TracChangeset
for help on using the changeset viewer.