Package Ganga :: Package GPIDev :: Package Credentials
[hide private]
[frames] | no frames]

Package Credentials

source code

Initialisation file for the Credentials package, containing classes for working with different types of credential.


Version: 1.5

Date: 25 September 2007

Author: K.Harrison <Harrison@hep.phy.cam.ac.uk>

Submodules [hide private]

Functions [hide private]
 
getCredential(name="", middleware="", create=True)
Function to return credential object of requested type
source code
Variables [hide private]
  _credentialPlugins = {}
  _allCredentials = {}
  _voidCredentials = {}
  logger = getLogger()
Function Details [hide private]

getCredential(name="", middleware="", create=True)

source code 

Function to return credential object of requested type

Arguments:
   middleware - String specifying any middleware used with credential
   name       - String specifying credential type
   create     - Boole specifying:
                True  - requested credential should be created if
                        it doesn't exist
                False - no new credential should be created

Return value: Credential object of requested type if it exists or
              can be created, or False otherwise