Package pyGlobus :: Module gramClient :: Class GramClientAttr
[show private | hide private]
[frames | no frames]

Class GramClientAttr


A class to wrap the globus gram client attr type.

It hides the underlying management of the globus_gram_client_attr_t object.
Method Summary
  __init__(self, handle, own)
Constructs an instance.
  __del__(self)
Destroy an instance.
  get_credential(self)
Returns the credential assosciated with the attr.
  get_handle(self)
Return the underlying gram client attr handle.
  set_credential(self, cred)
Set the underlying credential for gram client operations.

Method Details

__init__(self, handle=None, own=1)
(Constructor)

Constructs an instance.

Activates the gram client module and creates the gram client attr.
Parameters:
handle - A SWIG'ized pointer to a globus gram client attr object.
own - True is the class owns the underlying memory.
Raises:
GramClientAttrException - A GramClientAttrException is thrown if unable to create the attr.

__del__(self)
(Destructor)

Destroy an instance.

Deletes the gram client attr handle and deactivates the underlying globus module.

get_credential(self)

Returns the credential assosciated with the attr.
Returns:
A pyGlobus.security.GSSCred object is returned containing the cred assosciated with the attr set.
Raises:
GramClientAttr - A GramClientAttr exception is raised if uanble to get the cred.

get_handle(self)

Return the underlying gram client attr handle.
Returns:
A string containing the pointer.

Warning: This handle is only valid as long as this object exists. When

set_credential(self, cred)

Set the underlying credential for gram client operations.

Assosciates a credential with the attribute set.
Parameters:
cred -

A pyGlobus.security.GSSCred object containing the cred to assosciate with the attr set.

A GramClientAttr excpetion is raised if unable to set the cred.

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