Changeset 7331


Ignore:
Timestamp:
16/08/10 16:36:08 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • fixes to context handler
Location:
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/handler.py

    r7299 r7331  
    1515from ndg.xacml.core.context.pipinterface import PIPInterface 
    1616 
    17  
    18 class PEPInterface(object): 
    19     """Policy Enforcement Point Interface""" 
     17        
     18class CtxHandlerInterface(object): 
     19    """Context Handler interface.""" 
    2020    __metaclass__ = ABCMeta 
    2121    __slots__ = () 
    22              
     22     
    2323    @abstractmethod 
    2424    def handlePEPRequest(self, pepRequest): 
     
    3131        @rtype: None 
    3232        """ 
    33         raise NotImplementedError() 
     33        raise NotImplementedError()  
    3434        
    35         
    36 class CtxHandlerInterface(PEPInterface): 
    37     """Context Handler interface.""" 
    38     __metaclass__ = ABCMeta 
    39     __slots__ = () 
    40      
    4135    def pipQuery(self, request, designator): 
    4236        """Query a Policy Information Point to retrieve the attribute values 
     
    7872            raise TypeError('Expecting %r type for "pip" attribute; got %r ' 
    7973                            'instead' %  
    80                             (PDPInterface, value)) 
     74                            (PIPInterface, value)) 
    8175             
    8276        self.__pip = value 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/request.py

    r7109 r7331  
    1919from ndg.xacml.core.context.action import Action 
    2020from ndg.xacml.core.context.environment import Environment 
     21from ndg.xacml.core.context.handler import CtxHandlerInterface 
    2122 
    2223 
Note: See TracChangeset for help on using the changeset viewer.