Interface SecurityEventRepository
public interface SecurityEventRepository
Port that stores the audit trail of authentication events.
-
Method Summary
Modifier and TypeMethodDescriptionfindRecentByUser(UUID userId, int limit) Lists the most recent events of a user, newest first.voidstore(SecurityEvent event) Stores an event.
-
Method Details
-
store
Stores an event.- Parameters:
event- the event to store.
-
findRecentByUser
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.
-