6.1.1.3.1.2.1.2. linotp.lib.audit.base module¶
This is the BaseClass for logging Audit Trails
- class linotp.lib.audit.base.AuditBase[source]¶
Bases: object
- getTotal(param, AND=True, display_error=True)[source]¶
This method returns the total number of audit entries in the audit store
- initialize_log(param)[source]¶
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)[source]¶
This method is used to log the data. It should hash the data and do a hash chain and sign the data
- search(param, AND=True, display_error=True, rp_dict=None)[source]¶
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.