A proxy class for the underlying gss_ctx_id_t object.
Methods
|
|
__del__
__init__
accept_context
get_handle
init_context
inquire
|
|
__del__
|
__del__ ( self )
Destroys an instance.
Deletes the underlying gss_ctx_id_t object, and free's the
memory if the instance owns the underlying handle.
|
|
__init__
|
__init__ (
self,
handle=None,
free=1,
)
Constructs an instance.
Each instance wraps a gss_ctx_id_t object.
Arguments:
handle An optional argument that, if present, should
contain a SWIG'ized pointer to a gss_ctx_id_t object.
free Should the underlying gss_ctx_id_t object be
freed when an instance is destroyed.
|
|
accept_context
|
accept_context (
self,
acceptor_cred_handle,
input_token,
input_chan_bindings,
src_name,
mech_type,
output_token,
delegated_cred_handle,
)
|
|
get_handle
|
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 if
self._free is true.
|
|
init_context
|
init_context (
self,
init_cred,
target_name,
mech_type,
req_flags,
time_req,
input_token,
)
Tries to establish a secuirty context with a server
Arguements
init_cred is a GSSCred object which identifies the client
target_name is a GSSName object which is the name of the server
mech_type
req_flags
time_req
input_token a GSSBuffer object
|
|
inquire
|
inquire ( self )
Obtain information about the context.
Raises:
A GSSContextException is raised if an error occurs in the
underlying gss-api call.
Returns:
A 7-tuple containing:
A GSSName object containing the initiators name.
A GSSName object with the acceptors name.
An int containing the number of seconds the context
will remain valid for.
A string containing a SWIG'ized pointer to a static
gss_OID struct containing the mechanism type.
An int containing the context flags.
A bool indicating if the connection was initiated
locally.
A bool indicating if the connection is currently open.
|
|