source: TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v2/regexp_match.py @ 6804

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v2/regexp_match.py@6804
Revision 6804, 1.1 KB checked in by pjkersha, 9 years ago (diff)

Working class factories for each function module. Function class evaluate methods need to be refactored to accept *AttributeValue? types

Line 
1"""NDG XACML any URI matching function module
2
3NERC DataGrid Project
4"""
5__author__ = "P J Kershaw"
6__date__ = "26/03/10"
7__copyright__ = ""
8__license__ = "BSD - see LICENSE file in top-level directory"
9__contact__ = "Philip.Kershaw@stfc.ac.uk"
10__revision__ = '$Id: $'
11from ndg.xacml.core.functions import FunctionClassFactoryBase
12
13# Use v1.0 schema base class for version 2.0 additional types
14from ndg.xacml.core.functions.v1.regexp_match import RegexpMatchBase
15   
16
17class FunctionClassFactory(FunctionClassFactoryBase):
18    """Class Factory for *-regexp-match XACML function classes
19    """
20    FUNCTION_NS_SUFFIX = RegexpMatchBase.FUNCTION_NS_SUFFIX
21    FUNCTION_BASE_CLASS = RegexpMatchBase
22    FUNCTION_NAMES = (
23        'urn:oasis:names:tc:xacml:2.0:function:anyURI-regexp-match',
24        'urn:oasis:names:tc:xacml:2.0:function:ipAddress-regexp-match',
25        'urn:oasis:names:tc:xacml:2.0:function:dnsName-regexp-match',
26        'urn:oasis:names:tc:xacml:2.0:function:rfc822Name-regexp-match',
27        'urn:oasis:names:tc:xacml:2.0:function:x500Name-regexp-match'
28    )
Note: See TracBrowser for help on using the repository browser.