Package pyGlobus :: Module io :: Class AuthData
[show private | hide private]
[frames | no frames]

Class AuthData


Method Summary
  __init__(self, handle)
  __del__(self)
  free_callback(self, cbHandle)
######################################################################### # Free's the underlying memory allocated for the callback structure.
  get_handle(self)
######################################################################## # XXX This handle is only valid as long as this object exists.
  get_identity(self)
Query the "identity" member of the authorization-mode specific data structure.
  set_callback(self, callback, arg)
Set the callback and callback-arg members of the authorization-mode specific data structure.
  set_identity(self, identity)
Set the "identity" member of the authorization-mode specific data structure.

Method Details

free_callback(self, cbHandle)

######################################################################### # Free's the underlying memory allocated for the callback structure. ######################################################################### Freedom for the callback struct.

get_handle(self)

######################################################################## # XXX This handle is only valid as long as this object exists. When # the object is destroyed, the memory this handle points to is freed. #######################################################################

get_identity(self)

Query the "identity" member of the authorization-mode specific data structure. This member is set by a call to globus_io_secure_authorization_mode_set_identity.
Returns:
A pointer to hold a copy of the identity string set in the data structure.

set_callback(self, callback, arg)

Set the callback and callback-arg members of the authorization-mode specific data structure. This member is used when setting the authorization-mode attribute of a TCP attribute set to GLOBUS_IO_SECURE_AUTHORIZATION_MODE_CALLBACK in a call to globus_io_attr_set_secure_authorization_mode().
Parameters:
callback - The new value of the callback member.
arg - The new value of the callback-arg member.
Returns:
The new callback structure.
Raises:
AuthDataException - A AuthDataException if the function couldn't set the callback.

set_identity(self, identity)

Set the "identity" member of the authorization-mode specific data structure. This member should be set to a string containing the security distinguished name of the peer which you will authorize for this connection. The identity is only when the authorization-mode attribute is set to GLOBUS_IO_SECURE_AUTHORIZATION_MODE_IDENTITY.
Parameters:
identity - The string naming the security identity to authorize.
Returns:
None

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