Ignore:
Timestamp:
14/07/06 11:45:38 (13 years ago)
Author:
pjkersha
Message:

setup.py, README: altered version info to post Alpha development
NDG/LogClient.py, SimpleCAClient.py and GatekeeperClient?.py: catch HTTPResponse error from ZSI ServiceProxy?. This
allows more error info for file not found type problems.

NDG/Session.py, NDG/CredWallet.py: use AttAuthorityClient? wrapper rather than direct calls to ZSI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/NDG/Session.py

    r1203 r1301  
    5353from NDG.SecurityClient import SessionClient 
    5454from NDG.SecurityClient import SessionClientError 
    55  
    56 # Use to pipe output from ZSI ServiceProxy 
    57 from cStringIO import StringIO 
    5855 
    5956# Use in SessionMgr __redirectAuthorisationReq to retrieve and store Public  
     
    950947            # Get public key using WS 
    951948            try: 
    952                 aaSrv = ServiceProxy(reqKeys['aaWSDL'], use_wsdl=True) 
    953                  
    954                 pubKeyReq = AttAuthorityIO.PubKeyReq() 
    955                 resp = aaSrv.getPubKey(pubKeyReq=pubKeyReq()) 
    956                  
    957                 pubKeyResp = AttAuthorityIO.PubKeyResp(\ 
    958                                                    xmlTxt=resp['pubKeyResp']) 
    959          
    960                 if 'errMsg' in pubKeyResp and pubKeyResp['errMsg']: 
    961                     raise Exception(pubKeyResp['errMsg']) 
    962                  
    963                 reqKeys['aaPubKey'] = pubKeyResp['pubKey'] 
    964                  
     949                aaClnt = AttAuthorityClient(aaWSDL=reqKeys['aaWSDL'])                 
     950                reqKeys['aaPubKey'] = aaClnt.getPubKey() 
     951 
    965952            except Exception, e: 
    966                 raise SessionMgrError(\ 
    967                     "Retrieving Attribute Authority public key: "+ str(e)) 
     953                raise SessionMgrError, \ 
     954                    "Retrieving Attribute Authority public key: "+ str(e) 
    968955                                 
    969956                                                         
Note: See TracChangeset for help on using the changeset viewer.