Ignore:
Timestamp:
25/06/10 12:23:09 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • updating epydoc ready for release.
Location:
TI12-security/trunk/ndg_xacml
Files:
85 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/__init__.py

    r7064 r7087  
    11"""NDG XACML ndg namespace package 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44 
    55This is a setuptools namespace_package.  DO NOT place any other 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/__init__.py

    r7064 r7087  
    11"""NDG XACML package  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/__init__.py

    r7064 r7087  
    11"""NDG XACML core package  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/action.py

    r7064 r7087  
    11"""NDG XACML Action type definition  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/apply.py

    r7072 r7087  
    11"""NDG Security Condition type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/attribute.py

    r7064 r7087  
    11"""NDG XACML Attribute type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributedesignator.py

    r7064 r7087  
    11"""NDG XACML AttributeDesignator type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributeselector.py

    r7064 r7087  
    11"""NDG XACML AttributeSelector type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributevalue.py

    r7072 r7087  
    11"""NDG XACML attribute type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/combinerparameter.py

    r7064 r7087  
    11"""NDG Security CombinerParameter type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/condition.py

    r7064 r7087  
    11"""NDG XACML Condition type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/__init__.py

    r7064 r7087  
    22context schema 
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
     
    1717 
    1818class XacmlContextBase(XacmlCoreBase): 
    19     """Base class for XACML Request and Response types""" 
     19    """Base class for XACML Request and Response types 
     20     
     21    @cvar ELEMENT_LOCAL_NAME: XML local element name, derived classes should 
     22    set 
     23    @type ELEMENT_LOCAL_NAME: None""" 
    2024    ELEMENT_LOCAL_NAME = None 
    2125    __slots__ = () 
    2226     
    2327    def __init__(self): 
     28        """ELEMENT_LOCAL_NAME check makes this class virtual - derived classes 
     29        must override this method and set ELEMENT_LOCAL_NAME to the appropriate 
     30        string 
     31        """ 
    2432        if self.__class__.ELEMENT_LOCAL_NAME is None: 
    2533            raise NotImplementedError('Set "ELEMENT_LOCAL_NAME" in a derived ' 
     
    2937class RequestChildBase(XacmlContextBase): 
    3038    """Base class for XACML Context Subject, Resource, Action and Environment 
    31     types""" 
     39    types 
     40     
     41    @ivar __attributes: XACML Context subject attributes 
     42    @type __attributes: ndg.xacml.utils.TypedList 
     43    """ 
    3244    __slots__ = ('__attributes', ) 
    3345     
    3446    def __init__(self): 
     47        """Initialise attribute list""" 
    3548        self.__attributes = TypedList(Attribute) 
    3649         
    3750    @property 
    3851    def attributes(self): 
    39         """XACML Context subject attributes""" 
     52        """ 
     53        @return: XACML Context subject attributes 
     54        @rtype: ndg.xacml.utils.TypedList 
     55        """ 
    4056        return self.__attributes 
    4157     
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/action.py

    r7064 r7087  
    11"""NDG XACML Context Action type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/environment.py

    r7064 r7087  
    11"""NDG XACML Context Environment type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/exceptions.py

    r7064 r7087  
    11"""NDG XACML exception types for the context package 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1515 
    1616class XacmlContextError(Exception):     
    17     """Base class for exceptions related XACML context handling""" 
     17    """Base class for exceptions related XACML context handling 
     18     
     19    @ivar __response: Context response object associated with this exception 
     20    @type __response: ndg.xacml.core.context.response.Response 
     21    """ 
     22     
    1823    def __init__(self, *arg, **kw): 
     24        """Override Exception base class so as to add the response object in 
     25        the exception instance 
     26         
     27        @param arg: base class arguments 
     28        @type arg: tuple 
     29        @param kw: base class keywords if any 
     30        @type kw: dict 
     31        """ 
    1932        super(XacmlContextError, self).__init__(*arg, **kw) 
    2033        self.__response = Response() 
     
    2740    @property 
    2841    def response(self): 
    29         """Context response object associated with this exception 
     42        """ 
     43        @return: Context response object associated with this exception 
     44        @rtype: ndg.xacml.core.context.response.Response 
    3045        """ 
    3146        return self.__response 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/handler.py

    r7072 r7087  
    11"""NDG Security Context handler definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    4141        requestCtx.  This could be a subject, environment or resource.  Matching 
    4242        attributes values are returned 
     43         
     44        @param request: request context 
     45        @type request: ndg.xacml.core.context.request.Request 
     46        @param designator: desginator requiring additional subject attribute  
     47        information 
     48        @type designator: ndg.xacml.core.expression.Expression derived type 
     49        @return: list of attribute values for subject corresponding to given 
     50        policy designator 
     51        @rtype: list 
    4352        """ 
    4453        return [] 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pap.py

    r7064 r7087  
    11"""NDG Security Policy Access Point type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pdp.py

    r7064 r7087  
    11"""NDG XACML Policy Decision Point type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    2020    """A XACML Policy Decision Point implementation.  It supports the use of a  
    2121    single policy but not policy sets 
     22     
     23    @ivar __policy: policy object for PDP to use to apply access control 
     24    decisions 
     25    @type policy: ndg.xacml.core.policy.Policy / None 
    2226    """ 
    2327    __slots__ = ('__policy',) 
     
    4953    @property 
    5054    def policy(self): 
    51         """policy object for PDP to use to apply access control decisions""" 
     55        """Get policy 
     56        @return: policy object for PDP to use to apply access control decisions 
     57        @rtype: ndg.xacml.core.policy.Policy 
     58        """ 
    5259        return self.__policy 
    5360     
    5461    @policy.setter 
    5562    def policy(self, value): 
    56         '''policy object for PDP to use to apply access control decisions''' 
     63        '''Set policy 
     64        @param value: policy object for PDP to use to apply access control  
     65        decisions 
     66        @type policy: ndg.xacml.core.policy.Policy 
     67        ''' 
    5768        if not isinstance(value, Policy): 
    5869            raise TypeError('Expecting %r derived type for "policy" input; got ' 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pdpinterface.py

    r7064 r7087  
    11"""NDG Security Policy Decision Point interface definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    2727        @type request: ndg.xacml.core.context.request.Request 
    2828        @return: XACML context response 
    29         @rtype: ndg.xacml.core.context.response.Response 
     29        @rtype: None (this abstract method) expecting  
     30        ndg.xacml.core.context.response.Response type in implementations of this 
     31        class 
    3032        ''' 
    3133        if not isinstance(request, Request): 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pip.py

    r7064 r7087  
    11"""NDG Security Policy Information Point type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/request.py

    r7064 r7087  
    11"""NDG XACML module for Request type  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    2424    """XACML Request class 
    2525     
    26     @param ctxHandler: reference to context handler to enable the PDP to 
     26    @cvar ELEMENT_LOCAL_NAME: XML local element name, derived classes should 
     27    set 
     28    @type ELEMENT_LOCAL_NAME: string 
     29     
     30    @ivar __subjects: list of subjects corresponding to this request 
     31    @type __subjects: ndg.xacml.utils.TypedList 
     32    @ivar __resources: list of resources corresponding to this request 
     33    @type __subjects: ndg.xacml.utils.TypedList 
     34    @ivar __action: action for this request  
     35    @type __action: None / ndg.xacml.core.context.action.Action 
     36    @ivar __environment: environment associated with this request  
     37    @type __environment: None / ndg.xacml.core.context.environment.Environment 
     38     
     39    @ivar ctxHandler: reference to context handler to enable the PDP to 
    2740    query for additional attributes.  The Context Handler itself queries a 
    2841    Policy Information Point.  This handler setting may be omitted.  If so, 
     
    5366    @property 
    5467    def subjects(self): 
    55         """Request subjects""" 
     68        """Get Request subjects 
     69        @return: list of subjects 
     70        @rtype: ndg.xacml.utils.TypedList 
     71        """ 
    5672        return self.__subjects 
    5773         
    5874    @property 
    5975    def resources(self): 
    60         """Request resources""" 
     76        """Get Request resources 
     77        @return: list of resources 
     78        @rtype: ndg.xacml.utils.TypedList 
     79        """ 
    6180        return self.__resources 
    6281                                     
    6382    @property 
    6483    def action(self): 
    65         """Request action""" 
     84        """Get Request action 
     85        @return: action type 
     86        @rtype: None / ndg.xacml.core.context.action.Action 
     87        """ 
    6688        return self.__action 
    6789     
    6890    @action.setter 
    6991    def action(self, value): 
    70         """Request action""" 
     92        """Set Request action 
     93        @param value: action type 
     94        @type value: ndg.xacml.core.context.action.Action 
     95        """ 
    7196        if not isinstance(value, Action): 
    7297            raise TypeError('Expecting %r type for request "action" ' 
     
    77102    @property 
    78103    def environment(self): 
    79         """Request environment""" 
     104        """Get Request environment 
     105        @return: environment settings 
     106        @rtype: None / ndg.xacml.core.context.environment.Environment 
     107        """ 
    80108        return self.__environment 
    81109     
    82110    @environment.setter 
    83111    def environment(self, value): 
    84         """Request environment""" 
     112        """Set Request environment 
     113        @param value: environment settings 
     114        @type value: ndg.xacml.core.context.environment.Environment 
     115        """ 
    85116        if not isinstance(value, Environment): 
    86117            raise TypeError('Expecting %r type for request "environment" ' 
     
    93124        """Get Context handler used by evaluate method to query the PIP for 
    94125        additional attribute values 
     126        @return: context handler 
     127        @rtype: None / ndg.xacml.core.context.handler.CtxHandlerInterface  
     128        derived type   
    95129        """ 
    96130        return self.__ctxHandler 
     
    100134        """Set Context handler used by evaluate method to query the PIP for 
    101135        additional attribute values 
     136        @param value: context handler 
     137        @type value: ndg.xacml.core.context.handler.CtxHandlerInterface  
     138        derived type   
    102139        """ 
    103140        if not isinstance(value, CtxHandlerInterface): 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/resource.py

    r7064 r7087  
    11"""NDG XACML Context Resource type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1414 
    1515class Resource(RequestChildBase): 
    16     """XACML Context Resource type""" 
     16    """XACML Context Resource type 
     17     
     18    @cvar ELEMENT_LOCAL_NAME: XML local element name for the resource 
     19    @type ELEMENT_LOCAL_NAME: string 
     20    @cvar RESOURCE_CONTENT_ELEMENT_LOCAL_NAME: XML local element name for the 
     21    resource content 
     22    @type RESOURCE_CONTENT_ELEMENT_LOCAL_NAME: string 
     23     
     24    @ivar __resourceContent: resource content 
     25    @type __resourceContent: any 
     26    """ 
    1727    ELEMENT_LOCAL_NAME = 'Resource' 
    1828    RESOURCE_CONTENT_ELEMENT_LOCAL_NAME = 'ResourceContent' 
     
    2131     
    2232    def __init__(self): 
     33        """Initial resource content instance variable""" 
    2334        super(Resource, self).__init__() 
    2435        self.__resourceContent = None 
    2536 
    2637    def _get_resourceContent(self): 
     38        """Get resource content 
     39        @return: content 
     40        @rtype: any 
     41        """ 
    2742        return self.__resourceContent 
    2843 
    2944    def _set_resourceContent(self, value): 
     45        """ 
    3046        self.__resourceContent = value    
    3147 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/response.py

    r7064 r7087  
    11"""NDG XACML module for Response type  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1919 
    2020class Response(XacmlContextBase): 
    21     """XACML Response type""" 
     21    """XACML Response type 
     22    @cvar ELEMENT_LOCAL_NAME: XML local element name for the response 
     23    @type ELEMENT_LOCAL_NAME: string 
     24 
     25    @ivar __results: resource content 
     26    @type __results: ndg.xacml.utils.TypedList 
     27    """ 
    2228    ELEMENT_LOCAL_NAME = 'Response' 
    2329     
     
    2531     
    2632    def __init__(self): 
     33        """"Initialise results list""" 
    2734        super(Response, self).__init__() 
    2835        self.__results = TypedList(Result) 
     
    3037    @property 
    3138    def results(self): 
    32         """Response results list""" 
     39        """Get Response results list 
     40         
     41        @return: results list 
     42        @rtype: ndg.xacml.utils.TypedList 
     43        """ 
    3344        return self.__results 
    3445     
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/result.py

    r7064 r7087  
    11"""NDG XACML module for Result type  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1818 
    1919class StatusCode(XacmlContextBase): 
    20     '''XACML Response Result StatusCode.''' 
    21      
    22     # Local Name of StatusCode. 
     20    '''XACML Response Result StatusCode. 
     21     
     22    @cvar ELEMENT_LOCAL_NAME: XML Local Name of StatusCode element  
     23    @type ELEMENT_LOCAL_NAME: string 
     24     
     25    @cvar IDENTIFIER_PREFIX: namespace prefix for status codes 
     26    @type IDENTIFIER_PREFIX: string 
     27     
     28    @cvar OK: OK response status 
     29    @type OK: string 
     30     
     31    @cvar MISSING_ATTRIBUTE: missing attribute response status 
     32    @type MISSING_ATTRIBUTE: string 
     33     
     34    @cvar PROCESSING_ERROR: response status indicating a processing error 
     35    @type PROCESSING_ERROR: string 
     36     
     37    @cvar SYNTAX_ERROR: response status for a syntax error 
     38    @type SYNTAX_ERROR: string 
     39     
     40    @cvar CODES: list of recognised codes 
     41    @type CODES: tuple 
     42     
     43    @ivar __value: status code value 
     44    @type __value: basestring 
     45     
     46    @ivar __childStatusCode: child status code 
     47    @type __childStatusCode: ndg.xacml.core.result.StatusCode 
     48    ''' 
     49     
    2350    ELEMENT_LOCAL_NAME = "StatusCode" 
    2451 
     
    4471 
    4572    def _getStatusCode(self):  
     73        '''@return: child status code 
     74        @rtype: ndg.xacml.core.result.StatusCode 
     75        ''' 
    4676        return self.__childStatusCode 
    4777     
    4878    def _setStatusCode(self, value): 
     79        '''@param value: child status code 
     80        @type value: ndg.xacml.core.result.StatusCode 
     81        ''' 
    4982        if not isinstance(value, StatusCode): 
    5083            raise TypeError('Child "statusCode" must be a %r derived type, ' 
     
    5891               
    5992    def _getValue(self): 
     93        '''@return: status code value 
     94        @rtype: basestring 
     95        ''' 
    6096        return self.__value 
    6197         
    6298    def _setValue(self, value): 
     99        '''@param value: status code value 
     100        @type value: basestring 
     101        ''' 
    63102        if not isinstance(value, basestring): 
    64103            raise TypeError("\"value\" must be a basestring derived type, " 
     
    75114 
    76115class Status(XacmlContextBase):  
    77     '''XACML Response Result Status''' 
     116    '''XACML Response Result Status 
     117 
     118    @cvar ELEMENT_LOCAL_NAME: XML Local Name of Status element  
     119    @type ELEMENT_LOCAL_NAME: string 
     120     
     121    @ivar __statusCode: Status code element 
     122    @type __statusCode: None / ndg.xacml.core.context.result.StatusCode 
     123    @ivar __statusMessage: Status message element 
     124    @type __statusMessage: None / basestring 
     125    @ivar __statusDetail: Status detail element 
     126    @type __statusDetail: None / any type 
     127    ''' 
    78128     
    79129    # Local Name of Status. 
     
    97147    def createInitialised(cls, code=StatusCode.OK, message='', detail=''): 
    98148        """Create with an empty StatusCode object set 
     149 
     150        @param code: Status code - defaults to OK code 
     151        @type code: basestring 
     152        @param message: Status Message 
     153        @type message: basestring 
     154        @param detail: Status detail 
     155        @type detail: string / any 
     156        @return: Status instance 
     157        @rtype: ndg.xacml.core.context.Status 
    99158        """ 
    100159        status = cls() 
     
    111170         
    112171        @return: Status StatusCode 
     172        @rtype: ndg.xacml.core.context.StatusCode 
    113173        ''' 
    114174        return self.__statusCode 
     
    119179         
    120180        @param value: the Code of this Status 
     181        @type value: ndg.xacml.core.context.StatusCode 
    121182        ''' 
    122183        if not isinstance(value, StatusCode): 
     
    135196         
    136197        @return: Status StatusMessage 
     198        @rtype: basestring 
    137199        ''' 
    138200        return self.__statusMessage 
     
    143205         
    144206        @param value: the Message of this Status 
     207        @type value: basestring 
    145208        ''' 
    146209        if not isinstance(value, basestring): 
     
    158221        Gets the Detail of this Status. 
    159222         
    160         @return: Status StatusDetail 
     223        @return: Status detail 
     224        @rtype: any 
    161225        ''' 
    162226        return self.__statusDetail 
     
    167231         
    168232        @param value: the Detail of this Status 
     233        @type value: any type 
    169234        ''' 
    170235        self.__statusDetail = value 
     
    176241 
    177242class Decision(object): 
    178     """Define decision types for Response Result""" 
     243    """Define decision types for Response Result 
     244     
     245    @cvar PERMIT_STR: permit decision string 
     246    @type PERMIT_STR: string 
     247     
     248    @cvar DENY_STR: deny decision string 
     249    @type DENY_STR: string 
     250     
     251    @cvar INDETERMINATE_STR: indeterminate decision string 
     252    @type INDETERMINATE_STR: string 
     253     
     254    @cvar NOT_APPLICABLE_STR: not applicable decision string 
     255    @type NOT_APPLICABLE_STR: string 
     256     
     257    @cvar TYPES: list of valid decision strings 
     258    @type TYPES: tuple 
     259     
     260    @ivar value: decision value 
     261    @type value: string 
     262    """ 
    179263     
    180264    # "Permit" decision type 
     
    198282 
    199283    def __getstate__(self): 
    200         '''Enable pickling''' 
     284        '''Enable pickling 
     285         
     286        @return: class instance attributes dictionary 
     287        @rtype: dict 
     288        ''' 
    201289        _dict = {} 
    202290        for attrName in Decision.__slots__: 
     
    211299   
    212300    def __setstate__(self, attrDict): 
    213         '''Enable pickling''' 
     301        '''Enable pickling 
     302         
     303        @param attrDict: class instance attributes dictionary 
     304        @type attrDict: dict 
     305        ''' 
    214306        for attrName, val in attrDict.items(): 
    215307            setattr(self, attrName, val) 
    216308             
    217309    def _setValue(self, value): 
     310        """Set decision value 
     311         
     312        @param value: decision value - constrained vocabulary to Decision.TYPES 
     313        @type value: string or ndg.xacml.core.context.result.Decision 
     314        @raise AttributeError: invalid decision string value input 
     315        @raise TypeError: invalid type for input decision value 
     316        """ 
    218317        if isinstance(value, Decision): 
    219318            # Cast to string 
     
    230329         
    231330    def _getValue(self): 
     331        """Get decision value 
     332         
     333        @return: decision value  
     334        @rtype: string 
     335        """ 
    232336        return self.__value 
    233337     
     
    235339     
    236340    def __str__(self): 
     341        """represent decision as a string 
     342         
     343        @return: decision value  
     344        @rtype: string  
     345        """ 
    237346        return self.__value 
    238347 
    239348    def __repr__(self): 
     349        """Overridden to show the decision value 
     350         
     351        @return: decision representation  
     352        @rtype: string  
     353        """ 
    240354        return "%s = %r" % (super(Decision, self).__repr__(), self.__value) 
    241355     
    242356    def __eq__(self, decision): 
     357        """ 
     358        @param decision: decision value to compare with self's 
     359        @type param: string or ndg.xacml.core.context.result.Decision 
     360        @return: True if the decision values match, False otherwise 
     361        @rtype: bool 
     362        @raise AttributeError: invalid decision string value input 
     363        @raise TypeError: invalid type for input decision value 
     364        """ 
    243365        if isinstance(decision, Decision): 
    244366            # Cast to string 
     
    264386 
    265387    def __init__(self): 
     388        """Initialise set with Permit value""" 
    266389        super(PermitDecision, self).__init__(Decision.PERMIT_STR) 
    267390         
    268391    def _setValue(self):   
     392        """Make value read-only 
     393        @raise AttributeError: value can't be set 
     394        """ 
    269395        raise AttributeError("can't set attribute") 
    270396 
     
    275401     
    276402    def __init__(self): 
     403        """Initialise set with deny value""" 
    277404        super(DenyDecision, self).__init__(Decision.DENY_STR) 
    278405         
    279406    def _setValue(self, value):   
     407        """Make value read-only 
     408        @raise AttributeError: value can't be set 
     409        """ 
    280410        raise AttributeError("can't set attribute") 
    281411 
     
    286416     
    287417    def __init__(self): 
     418        """Initialise set with indeterminate value""" 
    288419        super(IndeterminateDecision, self).__init__(Decision.INDETERMINATE_STR) 
    289420         
    290421    def _setValue(self, value):   
     422        """Make value read-only 
     423        @raise AttributeError: value can't be set 
     424        """ 
    291425        raise AttributeError("can't set attribute") 
    292426 
     
    297431     
    298432    def __init__(self): 
     433        """Initialise set with not applicable value""" 
    299434        super(NotApplicableDecision, self).__init__(Decision.NOT_APPLICABLE_STR) 
    300435         
    301436    def _setValue(self, value):   
     437        """Make value read-only 
     438        @raise AttributeError: value can't be set 
     439        """ 
    302440        raise AttributeError("can't set attribute") 
    303441     
     
    311449 
    312450class Result(XacmlContextBase): 
    313     """XACML Result type - element in a Response""" 
     451    """XACML Result type - element in a Response 
     452     
     453    @cvar ELEMENT_LOCAL_NAME: XML element local name 
     454    @type ELEMENT_LOCAL_NAME: string 
     455     
     456    @cvar OBLIGATIONS_ELEMENT_LOCAL_NAME: obligations XML element local name 
     457    @type OBLIGATIONS_ELEMENT_LOCAL_NAME: string 
     458     
     459    @cvar RESOURCE_ID_ATTRIB_NAME: resource ID XML attribute name 
     460    @type RESOURCE_ID_ATTRIB_NAME: string 
     461     
     462    @ivar __resourceId: resource id 
     463    @type __resourceId: None/basestring 
     464     
     465    @ivar __decision: decision for this result 
     466    @type __decision: ndg.xacml.core.context.result.Decision 
     467     
     468    @ivar __status: result status 
     469    @type __status: ndg.xacml.core.context.result.Status 
     470        
     471    @ivar __obligations: obligations associated with this result 
     472    @type __obligations: ndg.xacml.core.obligation.Obligation 
     473    """ 
    314474    __slots__ = ('__resourceId', '__decision', '__status', '__obligations') 
    315475     
    316476    ELEMENT_LOCAL_NAME  = 'Result' 
    317477    OBLIGATIONS_ELEMENT_LOCAL_NAME = 'Obligations' 
    318     REOSURCE_ID_ATTRIB_NAME = 'ResourceId' 
     478    RESOURCE_ID_ATTRIB_NAME = 'ResourceId' 
    319479     
    320480    def __init__(self): 
     
    333493        """Create a result object populated with all it's child elements 
    334494        rather than set to None as is the default from __init__ 
     495         
     496        @param decision: decision for this result 
     497        @type decision: ndg.xacml.core.context.result.Decision 
     498         
     499        @param resourceId: resource id for associated resource 
     500        @type resourceId: basestring 
     501         
     502        @param obligations: obligations associated with this result 
     503        @type obligations: None/ndg.xacml.core.obligation.Obligation 
     504         
     505        @param kw: keywords for status attribute initialisation 
     506        @type kw: dict 
     507         
    335508        @return: new result object with all its child attributes created 
    336509        @rtype: ndg.xacml.core.context.result.Result 
     
    348521    @property 
    349522    def resourceId(self): 
    350         """Result resource Id""" 
     523        """Get Result resource Id 
     524         
     525        @return: resource Id 
     526        @rtype: basestring 
     527        """ 
    351528        return self.__resourceId 
    352529 
    353530    @resourceId.setter 
    354531    def resourceId(self, value): 
    355         """Result resource Id""" 
     532        """Set Result resource Id 
     533         
     534        @param value: resource Id 
     535        @type value: basestring 
     536        @raise TypeError: incorrect type for input 
     537        """ 
    356538        if not isinstance(value, basestring): 
    357539            raise TypeError('Expecting %r type for "resourceId" ' 
     
    362544    @property 
    363545    def decision(self): 
    364         """Result decision""" 
     546        """Get Result decision 
     547         
     548        @return: decision for this result 
     549        @rtype: ndg.xacml.core.context.result.Decision 
     550        """ 
    365551        return self.__decision 
    366552     
    367553    @decision.setter 
    368554    def decision(self, value): 
    369         """Request decision""" 
     555        """Set Request decision 
     556         
     557        @param value: decision for this result 
     558        @type value: ndg.xacml.core.context.result.Decision 
     559        @raise TypeError: incorrect type for input 
     560        """ 
    370561        if not isinstance(value, Decision): 
    371562            raise TypeError('Expecting %r type for result "decision" ' 
     
    375566    @property 
    376567    def status(self): 
    377         """Result status""" 
     568        """Get Result status 
     569         
     570        @return: status for this result 
     571        @rtype: ndg.xacml.core.context.result.Status 
     572        """ 
    378573        return self.__status 
    379574     
    380575    @status.setter 
    381576    def status(self, value): 
    382         """Result status""" 
     577        """Set Result status 
     578         
     579        @param value: status for this result 
     580        @type value: ndg.xacml.core.context.result.Status 
     581        @raise TypeError: incorrect type for input 
     582        """ 
    383583        if not isinstance(value, Status): 
    384584            raise TypeError('Expecting %r type for result "status" ' 
     
    389589    @property 
    390590    def obligations(self): 
    391         """Result obligation""" 
     591        """Get Result obligations 
     592         
     593        @return: obligations associated with this result 
     594        @rtype: ndg.xacml.core.obligations.Obligations         
     595        """ 
    392596        return self.__obligations 
    393597     
    394598    @obligations.setter 
    395599    def obligations(self, value): 
    396         """Result obligation""" 
     600        """Set Result obligations 
     601         
     602        @param value: obligations associated with this result 
     603        @type value: ndg.xacml.core.obligations.Obligations         
     604         
     605        @raise TypeError: incorrect type for input 
     606        """ 
    397607        if not isinstance(value, Obligation): 
    398608            raise TypeError('Expecting %r type for result "obligations" ' 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/subject.py

    r7064 r7087  
    11"""NDG XACML Context Subject type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1414 
    1515class Subject(RequestChildBase): 
    16     """XACML Context Subject type""" 
     16    """XACML Context Subject type 
     17     
     18    @cvar ELEMENT_LOCAL_NAME: XML Local Name of this element  
     19    @type ELEMENT_LOCAL_NAME: string 
     20     
     21    @cvar SUBJECT_CATEGORY_ATTRIB_NAME: subject category XML attribute name 
     22    @type SUBJECT_CATEGORY_ATTRIB_NAME: string 
     23     
     24    @ivar __subjectCategory: subject category XML attribute name 
     25    @type __subjectCategory: string     
     26    """ 
    1727    ELEMENT_LOCAL_NAME = 'Subject' 
    1828    SUBJECT_CATEGORY_ATTRIB_NAME = 'SubjectCategory' 
     
    2535 
    2636    def _get_subjectCategory(self): 
     37        """Get subject category 
     38         
     39        @return: subject category XML attribute name 
     40        @rtype: string  
     41        """    
    2742        return self.__subjectCategory 
    2843 
    2944    def _set_subjectCategory(self, value): 
     45        """Set subject category 
     46         
     47        @param value: subject category XML attribute name 
     48        @type value: string     
     49         
     50        @raise TypeError: incorrect type for input 
     51        """ 
    3052        if not isinstance(value, basestring): 
    3153            raise TypeError('Expecting %r type for "subjectCategory" ' 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/environment.py

    r7064 r7087  
    11"""NDG Security Environment type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/exceptions.py

    r7064 r7087  
    11"""NDG XACML exception types for policy parsing 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/expression.py

    r7064 r7087  
    11"""NDG Security Expression type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/__init__.py

    r7072 r7087  
    11"""NDG XACML package for functions 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/__init__.py

    r7064 r7087  
    11"""NDG XACMLpackage for XACML version 1.0 match functions 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/and.py

    r7064 r7087  
    11"""NDG XACML one and only functions module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1616 
    1717class And(AbstractFunction): 
    18     """Base class for XACML <type>-and functions""" 
     18    """Base class for XACML <type>-and functions 
     19     
     20    @cvar FUNCTION_NS: namespace for this function 
     21    @type FUNCTION_NS: string 
     22    @cvar BAG_TYPE: type for  
     23    @type BAG_TYPE: 
     24    """ 
    1925    FUNCTION_NS = AbstractFunction.V1_0_FUNCTION_NS + 'and' 
    2026    BAG_TYPE = bool 
     
    2632         
    2733        @param bag: bag containing elements to be AND'ed 
     34        @type bag: ndg.xacml.utils.TypedList 
     35         
     36        @return: result of AND operation on the inputs 
    2837        @rtype: bool 
    2938        """ 
     
    5160class FunctionClassFactory(FunctionClassFactoryInterface): 
    5261    """Class Factory for and XACML function class 
     62     
     63    @cvar FUNCTION_NS: URN for and function 
     64    @type FUNCTION_NS: string 
    5365    """ 
     66    FUNCTION_NS = 'urn:oasis:names:tc:xacml:1.0:function:and' 
     67     
    5468    def __call__(self, identifier): 
    5569        '''Create class for the And XACML function identifier 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/at_least_one_member_of.py

    r7064 r7087  
    11"""NDG XACML URI equal matching function module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    2020    urn:oasis:names:tc:xacml:1.0:function:<type>-at-least-one-member-of 
    2121     
    22     @cvar TYPE: AttributeValue type for the sets 
    23     @type TYPE: AttributeValue sub-class 
     22    @cvar TYPE: attribute type for the given implementation.  Derived classes 
     23    should set appropriately 
     24    @type TYPE: NoneType 
    2425    """ 
    2526    TYPE = None 
     
    6465class FunctionClassFactory(FunctionClassFactoryBase): 
    6566    """Class Factory for *-at-least-one-member-of XACML function classes 
     67     
     68    @cvar FUNCTION_NAMES: list of at least one member of function URNs 
     69    @type FUNCTION_NAMES: tuple 
     70     
     71    @cvar FUNCTION_NS_SUFFIX: generic suffix for at least one member of function 
     72    URNs 
     73    @type FUNCTION_NS_SUFFIX: string 
     74     
     75    @cvar FUNCTION_BASE_CLASS: base class for all at least one member of  
     76    function classes 
     77    @type FUNCTION_BASE_CLASS: ndg.xacml.core.functions.v1.AtLeastOneMemberOfBase 
    6678    """ 
    6779    FUNCTION_NAMES = ( 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/bag.py

    r7064 r7087  
    11"""NDG XACML string bag function module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1010__revision__ = '$Id$' 
    11 import sys 
    12  
    1311from ndg.xacml.utils import TypedList as Bag 
    1412from ndg.xacml.core.functions import AbstractFunction, FunctionClassFactoryBase 
     
    1917     
    2018    urn:oasis:names:tc:xacml:1.0:function:<type>-bag 
     19     
     20    @cvar TYPE: attribute type for the given implementation.  Derived classes 
     21    should set appropriately 
     22    @type TYPE: NoneType 
     23     
     24    @cvar FUNCTION_SUFFIX: suffix for all bag function class names 
     25    @type FUNCTION_SUFFIX: string 
     26     
     27    @cvar FUNCTION_NS_SUFFIX: generic suffix for at least one member of function 
     28    URNs 
     29    @type FUNCTION_NS_SUFFIX: string 
    2130    """ 
    2231    TYPE = None 
     
    4049                                'got %r' % (self.__class__.TYPE, type(i))) 
    4150            bag.append(i) 
    42          
    43              
     51          
    4452        return bag 
    4553 
     
    4755class FunctionClassFactory(FunctionClassFactoryBase): 
    4856    """Class Factory for *-bag XACML function classes 
     57     
     58    @cvar FUNCTION_NAMES: bag function URNs 
     59    @type FUNCTION_NAMES: tuple 
     60     
     61    @cvar FUNCTION_NS_SUFFIX: generic suffix for bag function URNs 
     62    @type FUNCTION_NS_SUFFIX: string 
     63     
     64    @cvar FUNCTION_BASE_CLASS: base class for all bag function classes 
     65    @type FUNCTION_BASE_CLASS: ndg.xacml.core.functions.v1.BagBase 
    4966    """ 
    5067    FUNCTION_NAMES = ( 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/equal.py

    r7064 r7087  
    22*-equal functions 
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
     
    1515 
    1616class EqualBase(AbstractFunction): 
    17     """Generic equal function for all types""" 
     17    """Generic equal function for all types 
     18     
     19    @cvar TYPE: attribute type for the given implementation.  Derived classes 
     20    should set appropriately 
     21    @type TYPE: NoneType 
     22    """ 
    1823    TYPE = None 
    1924     
     
    4550class FunctionClassFactory(FunctionClassFactoryBase): 
    4651    """Class Factory for *-equal XACML function classes 
     52     
     53    @cvar FUNCTION_NAMES: equal function URNs 
     54    @type FUNCTION_NAMES: tuple 
     55     
     56    @cvar FUNCTION_NS_SUFFIX: generic suffix for equal function URNs 
     57    @type FUNCTION_NS_SUFFIX: string 
     58     
     59    @cvar FUNCTION_BASE_CLASS: base class for all equal function classes 
     60    @type FUNCTION_BASE_CLASS: ndg.xacml.core.functions.v1.EqualBase 
    4761    """ 
    4862    FUNCTION_NAMES = ( 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/match.py

    r7064 r7087  
    22*-match functions 
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
     
    1616 
    1717class MatchBase(AbstractFunction): 
    18     """Generic match function for all types""" 
     18    """Generic match function for all types 
     19     
     20    @cvar TYPE: attribute type for the given implementation.  Derived classes 
     21    should set appropriately 
     22    @type TYPE: NoneType     
     23    """ 
    1924    TYPE = None 
    2025     
     
    7883class FunctionClassFactory(FunctionClassFactoryBase): 
    7984    """Class Factory for *-match XACML 1.0 function classes 
     85     
     86    @cvar FUNCTION_NAMES: equal function URNs 
     87    @type FUNCTION_NAMES: tuple 
     88     
     89    @cvar FUNCTION_NS_SUFFIX: generic suffix for match function URNs 
     90    @type FUNCTION_NS_SUFFIX: string 
     91     
     92    @cvar FUNCTION_BASE_CLASS: base class for all match function classes (apart 
     93    from Rfc822NameMatch) 
     94    @type FUNCTION_BASE_CLASS: ndg.xacml.core.functions.v1.MatchBase 
    8095    """ 
    8196    FUNCTION_NAMES = ( 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/one_and_only.py

    r7064 r7087  
    11"""NDG XACML one and only functions module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
     
    1717 
    1818class OneAndOnlyBase(AbstractFunction): 
    19     """Base class for XACML <type>-one-and-only functions""" 
     19    """Base class for XACML <type>-one-and-only functions 
     20     
     21    @cvar TYPE: attribute type for the given implementation.  Derived classes 
     22    should set appropriately 
     23    @type TYPE: NoneType 
     24    """ 
    2025    TYPE = None 
    2126     
     
    2429         
    2530        @param bag: bag containing one element 
    26         @rtype: bool 
     31        @type bag: ndg.xacml.utils.TypedList 
     32        @return: single item from bag 
     33        @rtype: dependent on bag type set in derived type 
    2734        """ 
    2835        if not isinstance(bag, Bag): 
     
    4552class FunctionClassFactory(FunctionClassFactoryBase): 
    4653    """Class Factory for *-one-and-only XACML function classes 
     54     
     55    @cvar FUNCTION_NAMES: one and only function URNs 
     56    @type FUNCTION_NAMES: tuple 
     57     
     58    @cvar FUNCTION_NS_SUFFIX: generic suffix for one and only function URNs 
     59    @type FUNCTION_NS_SUFFIX: string 
     60     
     61    @cvar FUNCTION_BASE_CLASS: base class for all one and only function classes  
     62    @type FUNCTION_BASE_CLASS: ndg.xacml.core.functions.v1.OneAndOnlyBase 
    4763    """ 
    4864    FUNCTION_NAMES = ( 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/regexp_match.py

    r7064 r7087  
    11"""NDG XACML1.0 Regular expression matching function module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/round.py

    r7064 r7087  
    11"""NDG XACML one and only functions module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v2/__init__.py

    r7064 r7087  
    11"""NDG XACML package for XACML version 2.0 match functions 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v2/regexp_match.py

    r7064 r7087  
    11"""NDG XACML 2.0 regular expression matching function module 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/match.py

    r7072 r7087  
    11"""NDG Security Match type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/obligation.py

    r7064 r7087  
    11"""NDG Security Obligation type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/policy.py

    r7064 r7087  
    11"""NDG Security Policy type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/policydefaults.py

    r7064 r7087  
    11"""NDG Security Policy Defaults type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/resource.py

    r7064 r7087  
    11"""NDG Security Resource type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/rule.py

    r7064 r7087  
    11"""NDG Security Rule type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/rule_combining_alg.py

    r7064 r7087  
    11"""NDG XACML Condition type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/subject.py

    r7064 r7087  
    11"""NDG Security Subject type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/target.py

    r7064 r7087  
    77"""NDG Security Target type definition 
    88 
    9 NERC DataGrid Project 
     9NERC DataGrid 
    1010""" 
    1111__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/variabledefinition.py

    r7064 r7087  
    11"""NDG Security Variable Definition type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/variablereference.py

    r7064 r7087  
    11"""NDG Security Variable Reference type definition 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/__init__.py

    r7064 r7087  
    11"""NDG XACML parsers package  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/__init__.py

    r7064 r7087  
    11"""NDG XACML ElementTree parsers package  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/actionattributedesignatorreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for ActionAttributeDesignator type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/actionmatchreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for action match type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/actionreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based parser for Action type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/applyreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Apply type reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributedesignatorreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for AttributeDesignator type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributeselectorreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree Attribute Selector Reader   
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributevaluereader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for AttributeValue type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/conditionreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Target Element reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/environmentreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Environment Element reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/expressionreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for Expression type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/factory.py

    r7072 r7087  
    11"""NDG XACML ElementTree reader module containing reader base class  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/matchreader.py

    r7064 r7087  
    22environment match types 
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/policydefaultsreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for PolicyDefaults type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/policyreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree Policy Reader   
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/reader.py

    r7064 r7087  
    11"""NDG XACML ElementTree reader module containing reader base class  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/resourceattributedesignatorreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for ResourceAttributeDesignator type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/resourcematchreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for resource match type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/resourcereader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Resource Element reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/rulereader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Rule Element reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/subjectattributedesignatorreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for SubjectAttributeDesignator type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/subjectmatchreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based reader for subject match type 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/subjectreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Subject Element reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/targetchildreader.py

    r7064 r7087  
    22Reosurce, Subject, Action and Environment 
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/targetreader.py

    r7064 r7087  
    11"""NDG XACML ElementTree based Target Element reader  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/writer.py

    r7064 r7087  
    11"""NDG XACML ElementTree writer base module  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/test/__init__.py

    r7064 r7087  
    11"""NDG XACML unit test package  
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/test/test_context.py

    r7072 r7087  
    22"""NDG XACML Context unit test package  
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/test/test_matchfunctions.py

    r7075 r7087  
    22"""NDG XACML functions unit test package  
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/test/test_policy.py

    r7064 r7087  
    22"""NDG XACML Policy unit test package  
    33 
    4 NERC DataGrid Project 
     4NERC DataGrid 
    55""" 
    66__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/utils/__init__.py

    r7072 r7087  
    11"""Utilities package for NDG XACML 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/ndg/xacml/utils/etree.py

    r7064 r7087  
    11"""ElementTree Utilities package for NDG Security 
    22 
    3 NERC DataGrid Project 
     3NERC DataGrid 
    44""" 
    55__author__ = "P J Kershaw" 
  • TI12-security/trunk/ndg_xacml/setup.py

    r7064 r7087  
    33"""NDG XACML 
    44 
    5 NERC DataGrid Project 
     5NERC DataGrid 
    66""" 
    77__author__ = "P J Kershaw" 
Note: See TracChangeset for help on using the changeset viewer.