Package beepy :: Package profiles :: Module saslotpprofile :: Class OTPdbase
[show private | hide private]
[frames | no frames]

Class OTPdbase

Known Subclasses:
OTPGenerator

This is a Mixin class to provide standard OTP database access methods.

If you wanted to use a different database to store your user OTP information in (such as an LDAP store) you would subclass from this class and instruct your OTPProfile to use your alternate database access class.
Method Summary
  __init__(self, dbasefile)
  retrieveDBEntry(self, username)
Retrieve a user entry from the database that corresponds to the supplied username.
  storeDBEntry(self, dbEntry)
storeDBEntry() stores a single OTPUserEntry in the database file set at initialisation.

Method Details

retrieveDBEntry(self, username)

Retrieve a user entry from the database that corresponds to the supplied username.
Parameters:
username - the user entry to retrieve.

storeDBEntry(self, dbEntry)

storeDBEntry() stores a single OTPUserEntry in the database file set at initialisation. It uses the shelve module.

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