linotp.lib.audit.base module¶
This is the BaseClass for logging Audit Trails
- class linotp.lib.audit.base.AuditBase¶
Bases:
object
- createKeys()¶
Create audit keys using the configured filenames
- getTotal(param, AND=True, display_error=True)¶
This method returns the total number of audit entries in the audit store
- initialize(request, client=None)¶
- initialize_log(param)¶
This method initialized the log state. The fact, that the log state was initialized, also needs to be logged. Therefor the same params are passed as i the log method.
- log(param)¶
This method is used to log the data. It should hash the data and do a hash chain and sign the data
- name = 'AuditBase'¶
- readKeys()¶
- search(param, AND=True, display_error=True, rp_dict=None)¶
This function is used to search audit events.
- param:
Search parameters can be passed.
- return:
A list of dictionaries is return. Each list element denotes an audit event.
- searchQuery(param, AND=True, display_error=True, rp_dict=None)¶
This function is used to search audit events.
- param:
Search parameters can be passed.
- return:
An iterator is returned.
- set()¶
This function could be used to set certain things like the signing key. But maybe it should only be read from linotp.cfg?
- linotp.lib.audit.base.getAudit()¶
- linotp.lib.audit.base.get_token_num_info()¶
get the current token / token user count
- Returns
literal about the number of used tokens / user tokens
- linotp.lib.audit.base.search(param, user=None, columns=None)¶