Changeset 7336 for TI12-security


Ignore:
Timestamp:
18/08/10 10:07:40 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

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 definition 
     1"""NDG Security Context handler base class 
    22 
    33NERC DataGrid 
     
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1111__revision__ = "$Id$" 
    12 from abc import ABCMeta, abstractmethod 
    13  
     12from ndg.xacml.core.context.handlerinterface import CtxHandlerInterface 
    1413from ndg.xacml.core.context.pdpinterface import PDPInterface 
    1514from ndg.xacml.core.context.pipinterface import PIPInterface 
    16  
    17         
    18 class CtxHandlerInterface(object): 
    19     """Context Handler interface.""" 
    20     __metaclass__ = ABCMeta 
    21     __slots__ = () 
    22      
    23     @abstractmethod 
    24     def handlePEPRequest(self, pepRequest): 
    25         """Handle request from Policy Enforcement Point 
    26          
    27         @param pepRequest: request from PEP, derived class determines its type 
    28         e.g. SAML AuthzDecisionQuery 
    29         @type pepRequest: type 
    30         @return: PEP response - derived class determines type 
    31         @rtype: None 
    32         """ 
    33         raise NotImplementedError()  
    34         
    35     def pipQuery(self, request, designator): 
    36         """Query a Policy Information Point to retrieve the attribute values 
    37         corresponding to the specified input designator.  Optionally, update the 
    38         requestCtx.  This could be a subject, environment or resource.  Matching 
    39         attributes values are returned 
    40          
    41         @param request: request context 
    42         @type request: ndg.xacml.core.context.request.Request 
    43         @param designator: designator requiring additional subject attribute  
    44         information 
    45         @type designator: ndg.xacml.core.expression.Expression derived type 
    46         @return: list of attribute values for subject corresponding to given 
    47         policy designator 
    48         @rtype: list 
    49         """ 
    50         return [] 
    5115     
    5216 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/request.py

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