Leosac  0.8.0
Open Source Access Control
Leosac::Audit::Serializer::PolymorphicAuditJSON Struct Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ serialize()

json Leosac::Audit::Serializer::PolymorphicAuditJSON::serialize ( const Audit::IAuditEntry in,
const SecurityContext sc 
)
static

Perform deep serialization of the AuditEntry in.

Definition at line 44 of file PolymorphicAuditSerializer.cpp.

◆ type_name()

std::string Leosac::Audit::Serializer::PolymorphicAuditJSON::type_name ( const Audit::IAuditEntry in)
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.


The documentation for this struct was generated from the following files: