source: TI12-security/trunk/ndg_xacml/ndg/xacml/core/subject.py @ 7100

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/ndg_xacml/ndg/xacml/core/subject.py@7100
Revision 7100, 1.0 KB checked in by pjkersha, 9 years ago (diff)

Incomplete - task 2: XACML-Security Integration

  • updating epydoc ready for release.
  • Property svn:keywords set to Id
Line 
1"""NDG Security Subject type definition
2
3NERC DataGrid
4"""
5__author__ = "P J Kershaw"
6__date__ = "24/02/10"
7__copyright__ = "(C) 2010 Science and Technology Facilities Council"
8__contact__ = "Philip.Kershaw@stfc.ac.uk"
9__license__ = "BSD - see LICENSE file in top-level directory"
10__contact__ = "Philip.Kershaw@stfc.ac.uk"
11__revision__ = "$Id$"
12from ndg.xacml.core import TargetChildBase
13from ndg.xacml.core.match import SubjectMatch
14
15class Subject(TargetChildBase):
16    """XACML Subject Target Policy element
17   
18    @cvar MATCH_TYPE: Sets the type for match attributes in this
19    TargetChildBase derived class
20    @type MATCH_TYPE: ndg.xacml.core.match.SubjectMatch
21    @cvar ELEMENT_LOCAL_NAME: XML element local name
22    @type ELEMENT_LOCAL_NAME: string
23    """
24    MATCH_TYPE = SubjectMatch
25    ELEMENT_LOCAL_NAME = 'Subject'
26   
27    __slots__ = ()
28   
29    @property
30    def subjectMatches(self):
31        """Convenience wrapper to base class method
32        @return: list of matches
33        @rtype: ndg.xacml.utils.TypedList
34        """
35        return self.matches
Note: See TracBrowser for help on using the repository browser.