Ignore:
Timestamp:
04/04/08 16:19:01 (12 years ago)
Author:
pjkersha
Message:

wsSecurity.SignatureHandler? - extra options for passing config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/wsSecurity.py

    r3755 r3768  
    162162 
    163163    #_________________________________________________________________________ 
    164     def __init__(self, cfgFilePath=None, configClass=WSSecurityConfig, **kw): 
     164    def __init__(self, cfgFilePath=None, cfgFileSection='DEFAULT', 
     165                 cfgClass=WSSecurityConfig, **kw): 
    165166        ''' 
    166167        @reqBinSecTokValType: set the ValueType for the BinarySecurityToken 
     
    244245        # WSSecurityConfig is the default class for reading config params but 
    245246        # alternative derivative class may be passed in instead. 
    246         if not issubclass(configClass, WSSecurityConfig): 
     247        if not issubclass(cfgClass, WSSecurityConfig): 
    247248            raise TypeError("%s is not a sub-class of WSSecurityConfig" % \ 
    248                             configClass) 
    249         self.cfg = configClass() 
     249                            cfgClass) 
     250        self.cfg = cfgClass() 
    250251         
    251252        # Read parameters from config file if set 
    252253        if cfgFilePath: 
    253             self.cfg.read(cfgFilePath) 
     254            self.cfg.read(cfgFilePath, section=cfgFileSection) 
    254255         
    255256        # Also update config from keywords set  
Note: See TracChangeset for help on using the changeset viewer.