source: TI12-security/trunk/python/ndg.security.server/ndg/security/server/wsgi/utils/attributeauthorityclient.py @ 4515

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/ndg/security/server/wsgi/utils/attributeauthorityclient.py@4515
Revision 4515, 1.0 KB checked in by pjkersha, 11 years ago (diff)

usercertauthn module renamed to userx509certauthn in Session Manager / SM client unit tests.

Line 
1
2class WSGIAttributeAuthorityClient(object):
3   
4    environKey = "ndg.security.server.attributeauthority.AttributeAuthority"
5   
6    def __init__(self, environKey=None, environ={}, **soapClientKw):
7        """"""
8
9        log.debug("WSGIAttributeAuthorityClient.__init__ ...")
10       
11        self._environKey=environKey or WSGIAttributeAuthorityClient.environKey
12       
13        # Standard WSGI environment dict
14        self._environ = environ
15       
16        if 'uri' in soapClientKw:
17            self._soapClient = AttributeAuthorityClient(**soapClientKw)
18           
19    _refInEnviron=lambda self: self._environKey in self._environ
20   
21    # Define as property for convenient call syntax
22    refInEnviron = property(fget=_refInEnviron,
23                            doc="return True if a Attribute Authority "
24                                "instance is available in WSGI environ")
25   
26    _getRef = lambda self:self._environ[self._environKey].serviceSOAPBinding.aa
27    ref = property(fget=_getRef, doc="Attribute Authority local instance")
Note: See TracBrowser for help on using the repository browser.