Changeset 7412


Ignore:
Timestamp:
02/09/10 09:25:48 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • added explicit class variables for all the standard attribute type URIs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributevalue.py

    r7351 r7412  
    4848   
    4949    IDENTIFIER = None 
     50     
     51    STRING_TYPE_URI = IDENTIFIER_PREFIX + 'string' 
     52    ANY_TYPE_URI = IDENTIFIER_PREFIX + 'anyURI' 
     53    INTEGER_TYPE_URI = IDENTIFIER_PREFIX + 'integer' 
     54    BOOLEAN_TYPE_URI = IDENTIFIER_PREFIX + 'boolean' 
     55    DOUBLE_TYPE_URI = IDENTIFIER_PREFIX + 'double' 
     56    DATE_TYPE_URI = IDENTIFIER_PREFIX + 'date' 
     57    DATETIME_TYPE_URI = IDENTIFIER_PREFIX + 'dateTime' 
     58    TIME_TYPE_URI = IDENTIFIER_PREFIX + 'time' 
     59    DAYTIMEDURATION_TYPE_URI = \ 
     60    'http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration' 
     61    YEARMONTHDURATION_TYPE_URI = \ 
     62    'http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration' 
     63    X500NAME_TYPE_URI = 'urn:oasis:names:tc:xacml:1.0:data-type:x500Name' 
     64    RFC822NAME_TYPE_URI = 'urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name' 
     65    HEXBINARY_TYPE_URI = IDENTIFIER_PREFIX + 'hexBinary' 
     66    BASE64BINARY_TYPE_URI = IDENTIFIER_PREFIX + 'base64Binary' 
     67    IPADDRESS_TYPE_URI = 'urn:oasis:names:tc:xacml:2.0:data-type:ipAddress' 
     68    DNSNAME_TYPE_URI = 'urn:oasis:names:tc:xacml:2.0:data-type:dnsName' 
     69 
    5070    TYPE_URIS = ( 
    51     'http://www.w3.org/2001/XMLSchema#string', 
    52     'http://www.w3.org/2001/XMLSchema#anyURI', 
    53     'http://www.w3.org/2001/XMLSchema#integer', 
    54     'http://www.w3.org/2001/XMLSchema#boolean', 
    55     'http://www.w3.org/2001/XMLSchema#double', 
    56     'http://www.w3.org/2001/XMLSchema#date', 
    57     'http://www.w3.org/2001/XMLSchema#dateTime', 
    58     'http://www.w3.org/2001/XMLSchema#time', 
    59     'http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration', 
    60     'http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration', 
    61     'urn:oasis:names:tc:xacml:1.0:data-type:x500Name', 
    62     'urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name', 
    63     'http://www.w3.org/2001/XMLSchema#hexBinary', 
    64     'http://www.w3.org/2001/XMLSchema#base64Binary', 
    65     'urn:oasis:names:tc:xacml:2.0:data-type:ipAddress', 
    66     'urn:oasis:names:tc:xacml:2.0:data-type:dnsName' 
     71        STRING_TYPE_URI, 
     72        ANY_TYPE_URI, 
     73        INTEGER_TYPE_URI, 
     74        BOOLEAN_TYPE_URI, 
     75        DOUBLE_TYPE_URI, 
     76        DATE_TYPE_URI, 
     77        DATETIME_TYPE_URI, 
     78        TIME_TYPE_URI, 
     79        DAYTIMEDURATION_TYPE_URI, 
     80        YEARMONTHDURATION_TYPE_URI, 
     81        X500NAME_TYPE_URI, 
     82        RFC822NAME_TYPE_URI, 
     83        HEXBINARY_TYPE_URI, 
     84        BASE64BINARY_TYPE_URI, 
     85        IPADDRESS_TYPE_URI, 
     86        DNSNAME_TYPE_URI 
    6787    ) 
    6888    TYPE_NAMES = ( 
Note: See TracChangeset for help on using the changeset viewer.