Ignore:
Timestamp:
25/08/10 16:41:20 (10 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • added identifier URN constants
File:
1 edited

Legend:

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

    r7099 r7365  
    152152        """ 
    153153        return self.__matches 
     154     
     155     
     156XACML_1_0_PREFIX = "urn:oasis:names:tc:xacml:1.0:" 
     157 
     158class Identifiers(object): 
     159    """XACML Identifiers""" 
     160    class Subject(object): 
     161        """XAMCL Subject Identifiers""" 
     162        AUTHN_LOCALITY_DNS_NAME = XACML_1_0_PREFIX + \ 
     163            "subject:authn-locality:dns-name" 
     164        AUTHN_LOCALITY_IP_ADDRESS = XACML_1_0_PREFIX + \ 
     165            "subject:authn-locality:ip-address" 
     166        AUTHN_METHOD = XACML_1_0_PREFIX + "subject:authentication-method" 
     167        AUTHN_TIME = XACML_1_0_PREFIX + "subject:authentication-time" 
     168        KEY_INFO = XACML_1_0_PREFIX + "subject:key-info" 
     169        REQUEST_TIME = XACML_1_0_PREFIX + "subject:request-time" 
     170        SESSION_START_TIME = XACML_1_0_PREFIX + "subject:session-start-time" 
     171        SUBJECT_ID = XACML_1_0_PREFIX + "subject:subject-id" 
     172        SUBJECT_ID_QUALIFIER = XACML_1_0_PREFIX + "subject:subject-id-qualifier" 
     173         
     174    class SubjectCategory(object): 
     175        """XACML Subject Category Identifiers""" 
     176        ACCESS_SUBJECT = XACML_1_0_PREFIX + "subject-category:access-subject" 
     177        CODEBASE = XACML_1_0_PREFIX + "subject-category:codebase" 
     178        INTERMEDIARY_SUBJECT = XACML_1_0_PREFIX + \ 
     179            "subject-category:intermediary-subject" 
     180        RECIPIENT_SUBJECT = XACML_1_0_PREFIX + \ 
     181            "subject-category:recipient-subject" 
     182        REQUESTING_MACHINE = XACML_1_0_PREFIX + \ 
     183            "subject-category:requesting-machine" 
     184         
     185    class Resource(object): 
     186        """XACML Resource Identifiers""" 
     187        RESOURCE_LOCATION = XACML_1_0_PREFIX + "resource:resource-location" 
     188        RESOURCE_ID = XACML_1_0_PREFIX + "resource:resource-id" 
     189        SIMPLE_FILE_NAME = XACML_1_0_PREFIX + "resource:simple-file-name" 
     190         
     191    class Action(object): 
     192        """XACML Action Identifiers""" 
     193        ACTION_ID = XACML_1_0_PREFIX + "action:action-id" 
     194        IMPLIED_ACTION = XACML_1_0_PREFIX + "action:implied-action" 
     195      
     196    class Environment(object): 
     197        """XACML Environment Identifiers""" 
     198        CURRENT_TIME = XACML_1_0_PREFIX + "environment:current-time" 
     199        CURRENT_DATE = XACML_1_0_PREFIX + "environment:current-date" 
     200        CURRENT_DATETIME = XACML_1_0_PREFIX + "environment:current-dateTime" 
     201 
     202 
     203 
Note: See TracChangeset for help on using the changeset viewer.