Changeset 7299


Ignore:
Timestamp:
06/08/10 16:41:25 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • Working on PIP to make Attribute Service query
Location:
TI12-security/trunk/ndg_xacml/ndg/xacml/core
Files:
3 edited

Legend:

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

    r7109 r7299  
    177177                                              if i.dataType == dataType]) 
    178178                     
    179             if context.ctxHandler is not None and len(attributeValueBag) == 0: 
    180                 # No match was found - try querying the Policy Information 
    181                 # Point via the Context Handler to see if values for the  
    182                 # attribute specified in this designator can be retrieved  
    183                 # externally. If retrieved, it's added to the bag.  The input 
    184                 # subject may be updated too so that the values are cached for 
    185                 # subsequent requests 
    186                 attributeValues = context.ctxHandler.pipQuery(subject, self) 
     179            if context.ctxHandler is not None: 
     180                # Try querying the Policy Information Point via the Context  
     181                # Handler to see if values for the attribute specified in this  
     182                # designator can be retrieved externally. If retrieved, they're  
     183                # added to the bag. 
     184                attributeValues = context.ctxHandler.pipQuery(context, self) 
    187185                attributeValueBag.extend(attributeValues) 
    188186                     
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/handler.py

    r7256 r7299  
    4747        @param request: request context 
    4848        @type request: ndg.xacml.core.context.request.Request 
    49         @param designator: desginator requiring additional subject attribute  
     49        @param designator: designator requiring additional subject attribute  
    5050        information 
    5151        @type designator: ndg.xacml.core.expression.Expression derived type 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pipinterface.py

    r7256 r7299  
    2121     
    2222    @abstractmethod 
    23     def attributeQuery(self): 
     23    def attributeQuery(self, context, attributeDesignator): 
    2424        """Query this PIP for attributes""" 
    2525        return [] 
Note: See TracChangeset for help on using the changeset viewer.