Package xmpp :: Module transports :: Class TLS
[show private | hide private]
[frames | no frames]

Class TLS

PlugIn --+
         |
        TLS


TLS connection used to encrypts already estabilished tcp connection.
Method Summary
  FeaturesHandler(self, conn, feats)
Used to analyse server <features/> tag for TLS support.
  pending_data(self, timeout)
Returns true if there possible is a data ready to be read.
  PlugIn(self, owner, now)
If the 'now' argument is true then starts using encryption immidiatedly.
  plugout(self, now)
Unregisters TLS handler's from owner's dispatcher.
  StartTLSHandler(self, conn, starttls)
Handle server reply if TLS is allowed to process.
  _startSSL(self)
Immidiatedly switch socket to TLS mode.
    Inherited from PlugIn
  __init__(self)
  DEBUG(self, text, severity)
Feed a provided debug line to main instance's debug facility along with our ID string.
  PlugOut(self)
Unregister all our staff from main instance and detach from it.

Method Details

FeaturesHandler(self, conn, feats)

Used to analyse server <features/> tag for TLS support. If TLS is supported starts the encryption negotiation. Used internally

pending_data(self, timeout=0)

Returns true if there possible is a data ready to be read.

PlugIn(self, owner, now=0)

If the 'now' argument is true then starts using encryption immidiatedly. If 'now' in false then starts encryption as soon as TLS feature is declared by the server (if it were already declared - it is ok).
Overrides:
xmpp.client.PlugIn.PlugIn

plugout(self, now=0)

Unregisters TLS handler's from owner's dispatcher. Take note that encription can not be stopped once started. You can only break the connection and start over.

StartTLSHandler(self, conn, starttls)

Handle server reply if TLS is allowed to process. Behaves accordingly. Used internally.

_startSSL(self)

Immidiatedly switch socket to TLS mode. Used internally.

Generated by Epydoc 2.1 on Thu Oct 5 23:57:40 2006 http://epydoc.sf.net