tlslite.basedb module
Base class for SharedKeyDB and VerifierDB.
- class tlslite.basedb.BaseDB(filename, type)[source]
Bases:
object
- create()[source]
Create a new on-disk database.
- Raises:
anydbm.error – If there’s a problem creating the database.
- keys()[source]
Return a list of usernames in the database.
- Return type:
- Returns:
The usernames in the database.
- open()[source]
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.