Interface SecurityEventRepository


public interface SecurityEventRepository
Port that stores the audit trail of authentication events.
  • Method Details

    • store

      void store(SecurityEvent event)
      Stores an event.
      Parameters:
      event - the event to store.
    • findRecentByUser

      List<SecurityEvent> findRecentByUser(UUID userId, int limit)
      Lists the most recent events of a user, newest first.
      Parameters:
      userId - identifier of the user.
      limit - maximum number of events to return.
      Returns:
      the events, possibly empty.