Changeset 7087
- Timestamp:
- 25/06/10 12:23:09 (11 years ago)
- Location:
- TI12-security/trunk/ndg_xacml
- Files:
-
- 85 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_xacml/ndg/__init__.py
r7064 r7087 1 1 """NDG XACML ndg namespace package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 5 5 This is a setuptools namespace_package. DO NOT place any other -
TI12-security/trunk/ndg_xacml/ndg/xacml/__init__.py
r7064 r7087 1 1 """NDG XACML package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/__init__.py
r7064 r7087 1 1 """NDG XACML core package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/action.py
r7064 r7087 1 1 """NDG XACML Action type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/apply.py
r7072 r7087 1 1 """NDG Security Condition type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/attribute.py
r7064 r7087 1 1 """NDG XACML Attribute type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributedesignator.py
r7064 r7087 1 1 """NDG XACML AttributeDesignator type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributeselector.py
r7064 r7087 1 1 """NDG XACML AttributeSelector type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributevalue.py
r7072 r7087 1 1 """NDG XACML attribute type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/combinerparameter.py
r7064 r7087 1 1 """NDG Security CombinerParameter type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/condition.py
r7064 r7087 1 1 """NDG XACML Condition type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/__init__.py
r7064 r7087 2 2 context schema 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" … … 17 17 18 18 class 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""" 20 24 ELEMENT_LOCAL_NAME = None 21 25 __slots__ = () 22 26 23 27 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 """ 24 32 if self.__class__.ELEMENT_LOCAL_NAME is None: 25 33 raise NotImplementedError('Set "ELEMENT_LOCAL_NAME" in a derived ' … … 29 37 class RequestChildBase(XacmlContextBase): 30 38 """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 """ 32 44 __slots__ = ('__attributes', ) 33 45 34 46 def __init__(self): 47 """Initialise attribute list""" 35 48 self.__attributes = TypedList(Attribute) 36 49 37 50 @property 38 51 def attributes(self): 39 """XACML Context subject attributes""" 52 """ 53 @return: XACML Context subject attributes 54 @rtype: ndg.xacml.utils.TypedList 55 """ 40 56 return self.__attributes 41 57 -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/action.py
r7064 r7087 1 1 """NDG XACML Context Action type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/environment.py
r7064 r7087 1 1 """NDG XACML Context Environment type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/exceptions.py
r7064 r7087 1 1 """NDG XACML exception types for the context package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 15 15 16 16 class 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 18 23 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 """ 19 32 super(XacmlContextError, self).__init__(*arg, **kw) 20 33 self.__response = Response() … … 27 40 @property 28 41 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 30 45 """ 31 46 return self.__response -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/handler.py
r7072 r7087 1 1 """NDG Security Context handler definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 41 41 requestCtx. This could be a subject, environment or resource. Matching 42 42 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 43 52 """ 44 53 return [] -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pap.py
r7064 r7087 1 1 """NDG Security Policy Access Point type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pdp.py
r7064 r7087 1 1 """NDG XACML Policy Decision Point type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 20 20 """A XACML Policy Decision Point implementation. It supports the use of a 21 21 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 22 26 """ 23 27 __slots__ = ('__policy',) … … 49 53 @property 50 54 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 """ 52 59 return self.__policy 53 60 54 61 @policy.setter 55 62 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 ''' 57 68 if not isinstance(value, Policy): 58 69 raise TypeError('Expecting %r derived type for "policy" input; got ' -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pdpinterface.py
r7064 r7087 1 1 """NDG Security Policy Decision Point interface definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 27 27 @type request: ndg.xacml.core.context.request.Request 28 28 @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 30 32 ''' 31 33 if not isinstance(request, Request): -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pip.py
r7064 r7087 1 1 """NDG Security Policy Information Point type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/request.py
r7064 r7087 1 1 """NDG XACML module for Request type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 24 24 """XACML Request class 25 25 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 27 40 query for additional attributes. The Context Handler itself queries a 28 41 Policy Information Point. This handler setting may be omitted. If so, … … 53 66 @property 54 67 def subjects(self): 55 """Request subjects""" 68 """Get Request subjects 69 @return: list of subjects 70 @rtype: ndg.xacml.utils.TypedList 71 """ 56 72 return self.__subjects 57 73 58 74 @property 59 75 def resources(self): 60 """Request resources""" 76 """Get Request resources 77 @return: list of resources 78 @rtype: ndg.xacml.utils.TypedList 79 """ 61 80 return self.__resources 62 81 63 82 @property 64 83 def action(self): 65 """Request action""" 84 """Get Request action 85 @return: action type 86 @rtype: None / ndg.xacml.core.context.action.Action 87 """ 66 88 return self.__action 67 89 68 90 @action.setter 69 91 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 """ 71 96 if not isinstance(value, Action): 72 97 raise TypeError('Expecting %r type for request "action" ' … … 77 102 @property 78 103 def environment(self): 79 """Request environment""" 104 """Get Request environment 105 @return: environment settings 106 @rtype: None / ndg.xacml.core.context.environment.Environment 107 """ 80 108 return self.__environment 81 109 82 110 @environment.setter 83 111 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 """ 85 116 if not isinstance(value, Environment): 86 117 raise TypeError('Expecting %r type for request "environment" ' … … 93 124 """Get Context handler used by evaluate method to query the PIP for 94 125 additional attribute values 126 @return: context handler 127 @rtype: None / ndg.xacml.core.context.handler.CtxHandlerInterface 128 derived type 95 129 """ 96 130 return self.__ctxHandler … … 100 134 """Set Context handler used by evaluate method to query the PIP for 101 135 additional attribute values 136 @param value: context handler 137 @type value: ndg.xacml.core.context.handler.CtxHandlerInterface 138 derived type 102 139 """ 103 140 if not isinstance(value, CtxHandlerInterface): -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/resource.py
r7064 r7087 1 1 """NDG XACML Context Resource type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 14 14 15 15 class 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 """ 17 27 ELEMENT_LOCAL_NAME = 'Resource' 18 28 RESOURCE_CONTENT_ELEMENT_LOCAL_NAME = 'ResourceContent' … … 21 31 22 32 def __init__(self): 33 """Initial resource content instance variable""" 23 34 super(Resource, self).__init__() 24 35 self.__resourceContent = None 25 36 26 37 def _get_resourceContent(self): 38 """Get resource content 39 @return: content 40 @rtype: any 41 """ 27 42 return self.__resourceContent 28 43 29 44 def _set_resourceContent(self, value): 45 """ 30 46 self.__resourceContent = value 31 47 -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/response.py
r7064 r7087 1 1 """NDG XACML module for Response type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 19 19 20 20 class 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 """ 22 28 ELEMENT_LOCAL_NAME = 'Response' 23 29 … … 25 31 26 32 def __init__(self): 33 """"Initialise results list""" 27 34 super(Response, self).__init__() 28 35 self.__results = TypedList(Result) … … 30 37 @property 31 38 def results(self): 32 """Response results list""" 39 """Get Response results list 40 41 @return: results list 42 @rtype: ndg.xacml.utils.TypedList 43 """ 33 44 return self.__results 34 45 -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/result.py
r7064 r7087 1 1 """NDG XACML module for Result type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 18 18 19 19 class 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 23 50 ELEMENT_LOCAL_NAME = "StatusCode" 24 51 … … 44 71 45 72 def _getStatusCode(self): 73 '''@return: child status code 74 @rtype: ndg.xacml.core.result.StatusCode 75 ''' 46 76 return self.__childStatusCode 47 77 48 78 def _setStatusCode(self, value): 79 '''@param value: child status code 80 @type value: ndg.xacml.core.result.StatusCode 81 ''' 49 82 if not isinstance(value, StatusCode): 50 83 raise TypeError('Child "statusCode" must be a %r derived type, ' … … 58 91 59 92 def _getValue(self): 93 '''@return: status code value 94 @rtype: basestring 95 ''' 60 96 return self.__value 61 97 62 98 def _setValue(self, value): 99 '''@param value: status code value 100 @type value: basestring 101 ''' 63 102 if not isinstance(value, basestring): 64 103 raise TypeError("\"value\" must be a basestring derived type, " … … 75 114 76 115 class 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 ''' 78 128 79 129 # Local Name of Status. … … 97 147 def createInitialised(cls, code=StatusCode.OK, message='', detail=''): 98 148 """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 99 158 """ 100 159 status = cls() … … 111 170 112 171 @return: Status StatusCode 172 @rtype: ndg.xacml.core.context.StatusCode 113 173 ''' 114 174 return self.__statusCode … … 119 179 120 180 @param value: the Code of this Status 181 @type value: ndg.xacml.core.context.StatusCode 121 182 ''' 122 183 if not isinstance(value, StatusCode): … … 135 196 136 197 @return: Status StatusMessage 198 @rtype: basestring 137 199 ''' 138 200 return self.__statusMessage … … 143 205 144 206 @param value: the Message of this Status 207 @type value: basestring 145 208 ''' 146 209 if not isinstance(value, basestring): … … 158 221 Gets the Detail of this Status. 159 222 160 @return: Status StatusDetail 223 @return: Status detail 224 @rtype: any 161 225 ''' 162 226 return self.__statusDetail … … 167 231 168 232 @param value: the Detail of this Status 233 @type value: any type 169 234 ''' 170 235 self.__statusDetail = value … … 176 241 177 242 class 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 """ 179 263 180 264 # "Permit" decision type … … 198 282 199 283 def __getstate__(self): 200 '''Enable pickling''' 284 '''Enable pickling 285 286 @return: class instance attributes dictionary 287 @rtype: dict 288 ''' 201 289 _dict = {} 202 290 for attrName in Decision.__slots__: … … 211 299 212 300 def __setstate__(self, attrDict): 213 '''Enable pickling''' 301 '''Enable pickling 302 303 @param attrDict: class instance attributes dictionary 304 @type attrDict: dict 305 ''' 214 306 for attrName, val in attrDict.items(): 215 307 setattr(self, attrName, val) 216 308 217 309 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 """ 218 317 if isinstance(value, Decision): 219 318 # Cast to string … … 230 329 231 330 def _getValue(self): 331 """Get decision value 332 333 @return: decision value 334 @rtype: string 335 """ 232 336 return self.__value 233 337 … … 235 339 236 340 def __str__(self): 341 """represent decision as a string 342 343 @return: decision value 344 @rtype: string 345 """ 237 346 return self.__value 238 347 239 348 def __repr__(self): 349 """Overridden to show the decision value 350 351 @return: decision representation 352 @rtype: string 353 """ 240 354 return "%s = %r" % (super(Decision, self).__repr__(), self.__value) 241 355 242 356 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 """ 243 365 if isinstance(decision, Decision): 244 366 # Cast to string … … 264 386 265 387 def __init__(self): 388 """Initialise set with Permit value""" 266 389 super(PermitDecision, self).__init__(Decision.PERMIT_STR) 267 390 268 391 def _setValue(self): 392 """Make value read-only 393 @raise AttributeError: value can't be set 394 """ 269 395 raise AttributeError("can't set attribute") 270 396 … … 275 401 276 402 def __init__(self): 403 """Initialise set with deny value""" 277 404 super(DenyDecision, self).__init__(Decision.DENY_STR) 278 405 279 406 def _setValue(self, value): 407 """Make value read-only 408 @raise AttributeError: value can't be set 409 """ 280 410 raise AttributeError("can't set attribute") 281 411 … … 286 416 287 417 def __init__(self): 418 """Initialise set with indeterminate value""" 288 419 super(IndeterminateDecision, self).__init__(Decision.INDETERMINATE_STR) 289 420 290 421 def _setValue(self, value): 422 """Make value read-only 423 @raise AttributeError: value can't be set 424 """ 291 425 raise AttributeError("can't set attribute") 292 426 … … 297 431 298 432 def __init__(self): 433 """Initialise set with not applicable value""" 299 434 super(NotApplicableDecision, self).__init__(Decision.NOT_APPLICABLE_STR) 300 435 301 436 def _setValue(self, value): 437 """Make value read-only 438 @raise AttributeError: value can't be set 439 """ 302 440 raise AttributeError("can't set attribute") 303 441 … … 311 449 312 450 class 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 """ 314 474 __slots__ = ('__resourceId', '__decision', '__status', '__obligations') 315 475 316 476 ELEMENT_LOCAL_NAME = 'Result' 317 477 OBLIGATIONS_ELEMENT_LOCAL_NAME = 'Obligations' 318 RE OSURCE_ID_ATTRIB_NAME = 'ResourceId'478 RESOURCE_ID_ATTRIB_NAME = 'ResourceId' 319 479 320 480 def __init__(self): … … 333 493 """Create a result object populated with all it's child elements 334 494 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 335 508 @return: new result object with all its child attributes created 336 509 @rtype: ndg.xacml.core.context.result.Result … … 348 521 @property 349 522 def resourceId(self): 350 """Result resource Id""" 523 """Get Result resource Id 524 525 @return: resource Id 526 @rtype: basestring 527 """ 351 528 return self.__resourceId 352 529 353 530 @resourceId.setter 354 531 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 """ 356 538 if not isinstance(value, basestring): 357 539 raise TypeError('Expecting %r type for "resourceId" ' … … 362 544 @property 363 545 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 """ 365 551 return self.__decision 366 552 367 553 @decision.setter 368 554 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 """ 370 561 if not isinstance(value, Decision): 371 562 raise TypeError('Expecting %r type for result "decision" ' … … 375 566 @property 376 567 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 """ 378 573 return self.__status 379 574 380 575 @status.setter 381 576 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 """ 383 583 if not isinstance(value, Status): 384 584 raise TypeError('Expecting %r type for result "status" ' … … 389 589 @property 390 590 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 """ 392 596 return self.__obligations 393 597 394 598 @obligations.setter 395 599 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 """ 397 607 if not isinstance(value, Obligation): 398 608 raise TypeError('Expecting %r type for result "obligations" ' -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/subject.py
r7064 r7087 1 1 """NDG XACML Context Subject type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 14 14 15 15 class 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 """ 17 27 ELEMENT_LOCAL_NAME = 'Subject' 18 28 SUBJECT_CATEGORY_ATTRIB_NAME = 'SubjectCategory' … … 25 35 26 36 def _get_subjectCategory(self): 37 """Get subject category 38 39 @return: subject category XML attribute name 40 @rtype: string 41 """ 27 42 return self.__subjectCategory 28 43 29 44 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 """ 30 52 if not isinstance(value, basestring): 31 53 raise TypeError('Expecting %r type for "subjectCategory" ' -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/environment.py
r7064 r7087 1 1 """NDG Security Environment type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/exceptions.py
r7064 r7087 1 1 """NDG XACML exception types for policy parsing 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/expression.py
r7064 r7087 1 1 """NDG Security Expression type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/__init__.py
r7072 r7087 1 1 """NDG XACML package for functions 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/__init__.py
r7064 r7087 1 1 """NDG XACMLpackage for XACML version 1.0 match functions 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/and.py
r7064 r7087 1 1 """NDG XACML one and only functions module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 16 16 17 17 class 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 """ 19 25 FUNCTION_NS = AbstractFunction.V1_0_FUNCTION_NS + 'and' 20 26 BAG_TYPE = bool … … 26 32 27 33 @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 28 37 @rtype: bool 29 38 """ … … 51 60 class FunctionClassFactory(FunctionClassFactoryInterface): 52 61 """Class Factory for and XACML function class 62 63 @cvar FUNCTION_NS: URN for and function 64 @type FUNCTION_NS: string 53 65 """ 66 FUNCTION_NS = 'urn:oasis:names:tc:xacml:1.0:function:and' 67 54 68 def __call__(self, identifier): 55 69 '''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 1 1 """NDG XACML URI equal matching function module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 20 20 urn:oasis:names:tc:xacml:1.0:function:<type>-at-least-one-member-of 21 21 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 24 25 """ 25 26 TYPE = None … … 64 65 class FunctionClassFactory(FunctionClassFactoryBase): 65 66 """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 66 78 """ 67 79 FUNCTION_NAMES = ( -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/bag.py
r7064 r7087 1 1 """NDG XACML string bag function module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 9 9 __contact__ = "Philip.Kershaw@stfc.ac.uk" 10 10 __revision__ = '$Id$' 11 import sys12 13 11 from ndg.xacml.utils import TypedList as Bag 14 12 from ndg.xacml.core.functions import AbstractFunction, FunctionClassFactoryBase … … 19 17 20 18 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 21 30 """ 22 31 TYPE = None … … 40 49 'got %r' % (self.__class__.TYPE, type(i))) 41 50 bag.append(i) 42 43 51 44 52 return bag 45 53 … … 47 55 class FunctionClassFactory(FunctionClassFactoryBase): 48 56 """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 49 66 """ 50 67 FUNCTION_NAMES = ( -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/equal.py
r7064 r7087 2 2 *-equal functions 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" … … 15 15 16 16 class 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 """ 18 23 TYPE = None 19 24 … … 45 50 class FunctionClassFactory(FunctionClassFactoryBase): 46 51 """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 47 61 """ 48 62 FUNCTION_NAMES = ( -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/match.py
r7064 r7087 2 2 *-match functions 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" … … 16 16 17 17 class 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 """ 19 24 TYPE = None 20 25 … … 78 83 class FunctionClassFactory(FunctionClassFactoryBase): 79 84 """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 80 95 """ 81 96 FUNCTION_NAMES = ( -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/one_and_only.py
r7064 r7087 1 1 """NDG XACML one and only functions module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" … … 17 17 18 18 class 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 """ 20 25 TYPE = None 21 26 … … 24 29 25 30 @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 27 34 """ 28 35 if not isinstance(bag, Bag): … … 45 52 class FunctionClassFactory(FunctionClassFactoryBase): 46 53 """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 47 63 """ 48 64 FUNCTION_NAMES = ( -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/regexp_match.py
r7064 r7087 1 1 """NDG XACML1.0 Regular expression matching function module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v1/round.py
r7064 r7087 1 1 """NDG XACML one and only functions module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v2/__init__.py
r7064 r7087 1 1 """NDG XACML package for XACML version 2.0 match functions 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/functions/v2/regexp_match.py
r7064 r7087 1 1 """NDG XACML 2.0 regular expression matching function module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/match.py
r7072 r7087 1 1 """NDG Security Match type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/obligation.py
r7064 r7087 1 1 """NDG Security Obligation type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/policy.py
r7064 r7087 1 1 """NDG Security Policy type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/policydefaults.py
r7064 r7087 1 1 """NDG Security Policy Defaults type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/resource.py
r7064 r7087 1 1 """NDG Security Resource type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/rule.py
r7064 r7087 1 1 """NDG Security Rule type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/rule_combining_alg.py
r7064 r7087 1 1 """NDG XACML Condition type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/subject.py
r7064 r7087 1 1 """NDG Security Subject type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/target.py
r7064 r7087 7 7 """NDG Security Target type definition 8 8 9 NERC DataGrid Project9 NERC DataGrid 10 10 """ 11 11 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/variabledefinition.py
r7064 r7087 1 1 """NDG Security Variable Definition type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/variablereference.py
r7064 r7087 1 1 """NDG Security Variable Reference type definition 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/__init__.py
r7064 r7087 1 1 """NDG XACML parsers package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/__init__.py
r7064 r7087 1 1 """NDG XACML ElementTree parsers package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/actionattributedesignatorreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for ActionAttributeDesignator type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/actionmatchreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for action match type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/actionreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based parser for Action type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/applyreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Apply type reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributedesignatorreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for AttributeDesignator type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributeselectorreader.py
r7064 r7087 1 1 """NDG XACML ElementTree Attribute Selector Reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributevaluereader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for AttributeValue type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/conditionreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Target Element reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/environmentreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Environment Element reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/expressionreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for Expression type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/factory.py
r7072 r7087 1 1 """NDG XACML ElementTree reader module containing reader base class 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/matchreader.py
r7064 r7087 2 2 environment match types 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/policydefaultsreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for PolicyDefaults type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/policyreader.py
r7064 r7087 1 1 """NDG XACML ElementTree Policy Reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/reader.py
r7064 r7087 1 1 """NDG XACML ElementTree reader module containing reader base class 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/resourceattributedesignatorreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for ResourceAttributeDesignator type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/resourcematchreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for resource match type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/resourcereader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Resource Element reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/rulereader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Rule Element reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/subjectattributedesignatorreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for SubjectAttributeDesignator type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/subjectmatchreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based reader for subject match type 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/subjectreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Subject Element reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/targetchildreader.py
r7064 r7087 2 2 Reosurce, Subject, Action and Environment 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/targetreader.py
r7064 r7087 1 1 """NDG XACML ElementTree based Target Element reader 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/writer.py
r7064 r7087 1 1 """NDG XACML ElementTree writer base module 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/test/__init__.py
r7064 r7087 1 1 """NDG XACML unit test package 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/test/test_context.py
r7072 r7087 2 2 """NDG XACML Context unit test package 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/test/test_matchfunctions.py
r7075 r7087 2 2 """NDG XACML functions unit test package 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/test/test_policy.py
r7064 r7087 2 2 """NDG XACML Policy unit test package 3 3 4 NERC DataGrid Project4 NERC DataGrid 5 5 """ 6 6 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/utils/__init__.py
r7072 r7087 1 1 """Utilities package for NDG XACML 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/ndg/xacml/utils/etree.py
r7064 r7087 1 1 """ElementTree Utilities package for NDG Security 2 2 3 NERC DataGrid Project3 NERC DataGrid 4 4 """ 5 5 __author__ = "P J Kershaw" -
TI12-security/trunk/ndg_xacml/setup.py
r7064 r7087 3 3 """NDG XACML 4 4 5 NERC DataGrid Project5 NERC DataGrid 6 6 """ 7 7 __author__ = "P J Kershaw"
Note: See TracChangeset
for help on using the changeset viewer.