Leosac
0.8.0
Open Source Access Control
|
A serializer that handle any type of Audit event and will try to perform deep serialization. More...
#include <PolymorphicAuditSerializer.hpp>
Classes | |
struct | HelperSerialize |
Non static helper that can visit a core audit object. More... | |
Static Public Member Functions | |
static json | serialize (const Audit::IAuditEntry &in, const SecurityContext &sc) |
Perform deep serialization of the AuditEntry in . More... | |
static std::string | type_name (const Audit::IAuditEntry &in) |
Returns the "type-name" of the audit entry. More... | |
A serializer that handle any type of Audit event and will try to perform deep serialization.
This class, through the use of other classes in the Audit::Serializer namespace, is able to serialize core Audit objects.
However, the audit system being extensible, we need to be able to use externally registered serializer. In the case where the to-be-serialized entry is not part of the core,
Definition at line 49 of file PolymorphicAuditSerializer.hpp.
|
static |
Perform deep serialization of the AuditEntry in
.
Definition at line 44 of file PolymorphicAuditSerializer.cpp.
|
static |
Returns the "type-name" of the audit entry.
Possible return value could be "audit-user-event".
Definition at line 52 of file PolymorphicAuditSerializer.cpp.