Class AuditEventMapper

java.lang.Object
se.swedenconnect.bankid.idp.audit.AuditEventMapper

@Deprecated(forRemoval=true, since="1.1.3") public class AuditEventMapper extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Wrapper for ObjectMapper to handle AuditEvent.
Author:
Martin Lindström, Felix Hellman
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    read(String event)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deserializes AuditEvent from json
    Deprecated, for removal: This API element is subject to removal in a future version.
    Serializes AuditEvent to JSON.

    Methods inherited from class java.lang.Object

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

    • AuditEventMapper

      public AuditEventMapper(ObjectMapper mapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      mapper - the ObjectMapper
  • Method Details

    • write

      public String write(AuditEvent event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Serializes AuditEvent to JSON.
      Parameters:
      event - to serialize
      Returns:
      json-string
    • read

      public AuditEvent read(String event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deserializes AuditEvent from json
      Parameters:
      event - to deserialize
      Returns:
      AuditEvent