source: TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/__init__.py @ 6770

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/__init__.py@6770
Revision 6770, 816 bytes checked in by pjkersha, 10 years ago (diff)

Added Context Handler and Attribute classes.

Line 
1"""NDG XACML context package defines classes for types in the access control
2context schema
3
4NERC DataGrid Project
5"""
6__author__ = "P J Kershaw"
7__date__ = "24/03/10"
8__copyright__ = "(C) 2010 Science and Technology Facilities Council"
9__contact__ = "Philip.Kershaw@stfc.ac.uk"
10__license__ = "BSD - see LICENSE file in top-level directory"
11__contact__ = "Philip.Kershaw@stfc.ac.uk"
12__revision__ = "$Id: $"
13from ndg.xacml.utils import TypedList
14
15class XacmlContextBase(object):
16    """Base class for XACML Request and Response types"""
17    __slots__ = ()
18   
19   
20class RequestChildBase(XacmlContextBase):
21    """Base class for XACML Context Subject, Resource, Action and Environment
22    types"""
23    __slots__ = ('__attributes', )
24   
25    def __init__(self):
26        self.__attributes = TypedList(Attribute)
27   
Note: See TracBrowser for help on using the repository browser.