Class MemoryBasedAuditEventRepository

java.lang.Object
se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
se.swedenconnect.bankid.idp.audit.MemoryBasedAuditEventRepository
All Implemented Interfaces:
DisposableBean, AuditEventRepository

@Deprecated(forRemoval=true, since="1.1.3") public class MemoryBasedAuditEventRepository extends AbstractBankIdAuditEventRepository
Deprecated, for removal: This API element is subject to removal in a future version.
A memory based AuditEventRepository.
Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • MemoryBasedAuditEventRepository

      public MemoryBasedAuditEventRepository(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, AbstractBankIdAuditEventRepository.DEFAULT_SUPPORTED_EVENTS will be used)
      Throws:
      IOException - if file logging can not be initialized
  • Method Details

    • find

      public List<AuditEvent> find(String principal, Instant after, String type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addEvent

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