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 Summary

    Constructors
    Constructor
    Description
    JsonAuditEventMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.actuate.audit.AuditEvent
    read(String event)
    Deserializes AuditEvent from its string representation.
    write(org.springframework.boot.actuate.audit.AuditEvent event)
    Serializes the AuditEvent to a String.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonAuditEventMapper

      public JsonAuditEventMapper(com.fasterxml.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