tlslite.basedb module
Base class for SharedKeyDB and VerifierDB.
- class tlslite.basedb.BaseDB(filename, type)
Bases:
object
- __contains__(username)
Check if the database contains the specified username.
- __delitem__(username)
- __getitem__(username)
- __init__(filename, type)
- __setitem__(username, value)
- check(username, param)
- create()
Create a new on-disk database.
- Raises:
anydbm.error – If there’s a problem creating the database.
- keys()
Return a list of usernames in the database.
- Return type:
- Returns:
The usernames in the database.
- open()
Open a pre-existing on-disk database.
- Raises:
anydbm.error – If there’s a problem opening the database.
ValueError – If the database is not of the right type.