source: TI12-security/trunk/WSSecurity/ndg/wssecurity/common/wssecurity/__init__.py @ 6378

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/WSSecurity/ndg/wssecurity/common/wssecurity/__init__.py@6378
Revision 6378, 1.2 KB checked in by pjkersha, 11 years ago (diff)

Refactoring base signature handler

Line 
1"""NDG Security WS-Security package - contains exception types
2
3NERC DataGrid Project
4"""
5__author__ = "P J Kershaw"
6__date__ = "01/04/08"
7__copyright__ = "(C) 2009 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: $"
12import logging
13log = logging.getLogger(__name__)
14
15import os
16
17from ConfigParser import SafeConfigParser
18from os.path import expandvars as exVar
19import copy
20from ZSI.wstools.Namespaces import OASIS
21
22
23from ndg.security.common.wssecurity.utils import CaseSensitiveConfigParser
24
25
26class WSSecurityError(Exception):
27    """For WS-Security generic exceptions not covered by other exception
28    classes in this module"""
29    def __init__(self, errorMessage):
30        log.error(errorMessage)
31        super(WSSecurityError, self).__init__(errorMessage)
32   
33       
34class WSSecurityConfigError(WSSecurityError):
35    """Configuration error with WS-Security setting or settings"""
36   
37   
38class WSSecurityConfigOpNotPermitted(WSSecurityConfigError):
39    "Raise for dict methods not allowed in WSSecurityConfig"
40     
Note: See TracBrowser for help on using the repository browser.