source: TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pipinterface.py @ 7299

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

Incomplete - task 2: XACML-Security Integration

  • Working on PIP to make Attribute Service query
Line 
1"""NDG XACML Policy Information Point interface definition
2
3"""
4__author__ = "P J Kershaw"
5__date__ = "15/07/10"
6__copyright__ = "(C) 2010 Science and Technology Facilities Council"
7__contact__ = "Philip.Kershaw@stfc.ac.uk"
8__license__ = "BSD - see LICENSE file in top-level directory"
9__contact__ = "Philip.Kershaw@stfc.ac.uk"
10__revision__ = "$Id:$"
11from abc import ABCMeta, abstractmethod
12
13
14class PIPInterface(object):
15    """Interface class for XACML Policy Information Point.  The PDP can relay
16    attribute queries back via the Context handler to the PIP in order to help
17    it in making an access control decision
18    """
19    __metaclass__ = ABCMeta
20    __slots__ = ()
21   
22    @abstractmethod
23    def attributeQuery(self, context, attributeDesignator):
24        """Query this PIP for attributes"""
25        return []
Note: See TracBrowser for help on using the repository browser.