Class JsonAuditEventMapper

java.lang.Object
se.swedenconnect.spring.saml.idp.audit.repository.JsonAuditEventMapper
All Implemented Interfaces:
AuditEventMapper

public class JsonAuditEventMapper extends Object implements AuditEventMapper
Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • JsonAuditEventMapper

      public JsonAuditEventMapper(tools.jackson.databind.ObjectMapper mapper)
      Constructor.
      Parameters:
      mapper - the ObjectMapper
  • Method Details

    • write

      public String write(org.springframework.boot.actuate.audit.AuditEvent event)
      Serializes the AuditEvent to a String.
      Specified by:
      write in interface AuditEventMapper
      Parameters:
      event - to serialize
      Returns:
      the string
    • read

      public org.springframework.boot.actuate.audit.AuditEvent read(String event)
      Deserializes AuditEvent from its string representation.
      Specified by:
      read in interface AuditEventMapper
      Parameters:
      event - to deserialize
      Returns:
      an AuditEvent