Class AbstractBankIdAuditEventRepository

java.lang.Object
se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
All Implemented Interfaces:
DisposableBean, AuditEventRepository
Direct Known Subclasses:
MemoryBasedAuditEventRepository, RedisListAuditEventRepository, RedisTimeSeriesAuditEventRepository

@Deprecated(forRemoval=true, since="1.1.3") public abstract class AbstractBankIdAuditEventRepository extends Object implements AuditEventRepository, DisposableBean
Deprecated, for removal: This API element is subject to removal in a future version.
Use the Audit support from the SAML IdP project instead
The base AuditEventRepository for the BankID IdP.
Author:
Martin Lindström, Felix Hellman
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static List<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
    The events that we support by default.
  • 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
    final void
    add(AuditEvent event)
    Deprecated, for removal: This API element is subject to removal in a future version.
    protected abstract void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Logs an event.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the audit event mapper.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.boot.actuate.audit.AuditEventRepository

    find
  • Field Details

    • DEFAULT_SUPPORTED_EVENTS

      public static List<String> DEFAULT_SUPPORTED_EVENTS
      Deprecated, for removal: This API element is subject to removal in a future version.
      The events that we support by default.
  • Constructor Details

    • AbstractBankIdAuditEventRepository

      public AbstractBankIdAuditEventRepository(String logFile, AuditEventMapper mapper, List<String> supportedEvents) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      logFile - the log file including its path (if null, no file logging will be performed)
      mapper - mapper for creating JSON
      supportedEvents - the supported events (if null, DEFAULT_SUPPORTED_EVENTS will be used)
      Throws:
      IOException - if file logging can not be initialized
  • Method Details

    • add

      public final void add(AuditEvent event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      add in interface AuditEventRepository
    • addEvent

      protected abstract void addEvent(AuditEvent event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Logs an event.
      Parameters:
      event - the audit event to log
    • destroy

      public void destroy() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      destroy in interface DisposableBean
      Throws:
      Exception
    • getAuditEventMapper

      protected AuditEventMapper getAuditEventMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the audit event mapper.
      Returns:
      the AuditEventMapper