Package beepy :: Package profiles :: Module tlsprofile :: Class TLSProfile
[show private | hide private]
[frames | no frames]

Class TLSProfile

Profile --+
          |
         TLSProfile


A TLSProfile is a profile that implements the TLS Transport Security Profile. It is used to set up a TLS encrypted TCP session.
Method Summary
  __init__(self, session, profileInit, init_callback)
This generic TLS profile has no way of determining your application specific key and certificate files.
  parseError(self, msg)
parseError() extracts the error code from the <error> block
  parseProceed(self, msg)
  parseReady(self, msg)
Check data to see if it matches a 'ready' element
  processMessage(self, msg)
All processMessage should do is move the session from insecure to secured.
  sendReady(self)
send a ready message to the remote end
    Inherited from Profile
  mimeDecode(self, payload)
mimeDecode() is a convenience function used to help make life easier for profile programmers, like me.
  mimeEncode(self, payload, contentType, encoding)
mimeEncode() is a convenience function used to help make life easier for profile programmers, like me.
  setChannel(self, channel)
setChannel() binds this Profile to the Channel it belongs to.

Method Details

__init__(self, session, profileInit=None, init_callback=None)
(Constructor)

This generic TLS profile has no way of determining your application specific key and certificate files. To do any sort of funky processing (such as picking specific keyfiles or certificates based on the address of the client, for example) you have to subclass from this class and implement extra bits and pieces to pass in the key and cert file locations.
Overrides:
beepy.profiles.profile.Profile.__init__

parseError(self, msg)

parseError() extracts the error code from the <error> block

parseReady(self, msg)

Check data to see if it matches a 'ready' element

processMessage(self, msg)

All processMessage should do is move the session from insecure to secured.
Overrides:
beepy.profiles.profile.Profile.processMessage

sendReady(self)

send a ready message to the remote end

Generated by Epydoc 2.0 on Thu Sep 30 14:39:25 2004 http://epydoc.sf.net