Ignore:
Timestamp:
28/06/10 10:19:26 (11 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • updating epydoc ready for release.
File:
1 edited

Legend:

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

    r7087 r7108  
    2727 
    2828class Target(XacmlCoreBase): 
    29     """XACML Target element""" 
     29    """XACML Target element 
     30     
     31    @cvar ELEMENT_LOCAL_NAME: XML local name for this element 
     32    @type ELEMENT_LOCAL_NAME: string 
     33    @cvar SUBJECTS_ELEMENT_LOCAL_NAME: XML local name for the subjects element 
     34    @type SUBJECTS_ELEMENT_LOCAL_NAME: string 
     35    @cvar ACTIONS_ELEMENT_LOCAL_NAME: XML local name for the actions element 
     36    @type ACTIONS_ELEMENT_LOCAL_NAME: string 
     37    @cvar RESOURCES_ELEMENT_LOCAL_NAME: XML local name for the resources element 
     38    @type RESOURCES_ELEMENT_LOCAL_NAME: string 
     39    @cvar ENVIRONMENTS_ELEMENT_LOCAL_NAME: XML local name for the environments 
     40    element 
     41    @type ENVIRONMENTS_ELEMENT_LOCAL_NAME: string 
     42    @cvar CHILD_ATTRS: list of the XML child element names for <Target/> 
     43    @type CHILD_ATTRS: tuple 
     44     
     45    @ivar __subjects: list of subjects for this target 
     46    @type __subjects: ndg.xacml.utils.TypedList 
     47    @ivar __resources: list of resources for this target 
     48    @type __resources: ndg.xacml.utils.TypedList 
     49    @ivar __actions: list of actions for this target 
     50    @type __actions: ndg.xacml.utils.TypedList 
     51    @ivar __environments: list of environment settings for this target 
     52    @type __environments: ndg.xacml.utils.TypedList 
     53    """ 
    3054    ELEMENT_LOCAL_NAME = "Target" 
    3155    SUBJECTS_ELEMENT_LOCAL_NAME = "Subjects" 
     
    4670    @property 
    4771    def subjects(self): 
     72        """Get subjects 
     73        @return: list of subjects for this target 
     74        @rtype: ndg.xacml.utils.TypedList 
     75        """ 
    4876        return self.__subjects 
    4977     
    5078    @property 
    5179    def resources(self): 
     80        """Get resources 
     81        @return: list of resources for this target 
     82        @rtype: ndg.xacml.utils.TypedList 
     83        """ 
    5284        return self.__resources 
    5385     
    5486    @property 
    5587    def actions(self): 
     88        """Get actions 
     89        @return: list of actions for this target 
     90        @rtype: ndg.xacml.utils.TypedList 
     91        """ 
    5692        return self.__actions 
    5793     
    5894    @property 
    5995    def environments(self): 
     96        """Get environments 
     97        @return: list of environments for this target 
     98        @rtype: ndg.xacml.utils.TypedList 
     99        """ 
    60100        return self.__environments 
    61101             
     
    63103        """Generic method to match a <Target> element to the request context 
    64104         
    65         @param target: XACML target element 
    66         @type target: ndg.xacml.core.target.Target 
    67105        @param request: XACML request context 
    68106        @type request: ndg.xacml.core.context.request.Request 
     
    136174        object 
    137175        @type targetChild: ndg.xacml.core.TargetChildBase 
    138         @param requestChild: Request Subject, Resource, Action or Environment 
    139         object 
    140         @type requestChild: ndg.xacml.core.context.RequestChildBase 
     176        @param request: Request context object 
     177        @type request: ndg.xacml.core.context.request.Request 
    141178        @return: True if request context matches something in the target 
    142179        @rtype: bool 
Note: See TracChangeset for help on using the changeset viewer.