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.
- Parameters
username (str) – The username to check for.
- Return type
bool
- Returns
True if the database contains the username, False otherwise.
-
__delitem__(username)¶
-
__getitem__(username)¶
-
__init__(filename, type)¶ Initialize self. See help(type(self)) for accurate signature.
-
__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
list
- 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.
-