Package beepy :: Package profiles :: Module saslprofile :: Class SASLProfile
[show private | hide private]
[frames | no frames]

Class SASLProfile

Profile --+
          |
         SASLProfile

Known Subclasses:
SASLAnonymousProfile, SASLOTPProfile

This is an abstract class to provide the core SASL Profile API
Method Summary
  __init__(self, session)
__init__() is used to set up special SASL data such as certificates, user dbases, etc.
  decodeBlob(self, data)
decodeBlob() extracts the data from the <blob> section of the payload data and decodes it from base64.
  encodeBlob(self, data)
encodeBlob() takes the data passed in and returns the appropriate <blob></blob> structure with base64 encoded data.
  parseError(self, data)
parseError() extracts the error code from the <error> block
  parseStatus(self, data)
parseStatus() extracts the status code from the <blob> block
    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.
  processMessage(self, msg)
processMessage() is called by the Channel to which this profile is bound.
  setChannel(self, channel)
setChannel() binds this Profile to the Channel it belongs to.

Method Details

__init__(self, session)
(Constructor)

__init__() is used to set up special SASL data such as certificates, user dbases, etc.
Overrides:
beepy.profiles.profile.Profile.__init__

decodeBlob(self, data)

decodeBlob() extracts the data from the <blob> section of the payload data and decodes it from base64. It's really XML, but I don't think using a full parser is warranted here.

encodeBlob(self, data)

encodeBlob() takes the data passed in and returns the appropriate <blob></blob> structure with base64 encoded data.

parseError(self, data)

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

parseStatus(self, data)

parseStatus() extracts the status code from the <blob> block

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