Package pyGlobus :: Module security :: Class GSICredential
[show private | hide private]
[frames | no frames]

Class GSICredential


A class for the underlying globus_gsi_cred_handle_t
Method Summary
  __init__(self, attr, handle)
  __del__(self)
frees the memory associated with the handle
  get_cert(self)
retrieves the user cert from the underlying handle You must call read, before you call this method.
  get_cert_chain(self)
retrieves the cert chain from the underlying handle You must call read, before you call this method.
  get_key(self)
retrieves the private key from the underlying handle You must call read, before you call this method.
  read(self)
reads the credential information into the handle, analogous to acquire_cred in the GSSCred class

Method Details

__init__(self, attr=None, handle=None)
(Constructor)

Parameters:
attr - A GSICredentialAttr object
handle - A SWIG'ized pointer to a globus_gsi_cred_handle_t
Raises:
GSICredentialException - A GSICredentialException is raised if the handle can not be created or the module can not be initialized

__del__(self)
(Destructor)

frees the memory associated with the handle
Raises:
GSICredentialException - A GSICredentialException is raised if the underlying handle can not be destroyed or the module can not be deactivaated

get_cert(self)

retrieves the user cert from the underlying handle You must call read, before you call this method.
Returns:
a X509 object which represents the user cert
Raises:
GSICredential - A GSICredential Exception is raised if the user cert can not be retrieved

get_cert_chain(self)

retrieves the cert chain from the underlying handle You must call read, before you call this method. The cert chain does not contain the user cert
Returns:
a STACK_X509 object which represents the cert chain
Raises:
GSICredential - A GSICredential Exception is raised if the cert chain can not be retrieved

get_key(self)

retrieves the private key from the underlying handle You must call read, before you call this method.
Returns:
a EVP_Key object which represents the private key
Raises:
GSICredential - A GSICredential Exception is raised if the private key can not be retrieved

read(self)

reads the credential information into the handle, analogous to acquire_cred in the GSSCred class
Raises:
GSICredentialException - A GSICredentialException is raised if the credential information can not be retrieved

Generated by Epydoc 2.1 on Tue Apr 4 14:32:56 2006 http://epydoc.sf.net