Interface JSentinelAuditService
- All Known Implementing Classes:
CompositeAuditService, DefaultCompositeAuditService, NoopJSentinelAuditService, StoreBackedJSentinelAuditService
public interface JSentinelAuditService
Read/write facade for security audit events.
The write side (publish(AuditEvent)) is the canonical entry
point for every framework emit-site. Implementations typically fan the
event out to one or more AuditSinks. The read side
(query(AuditQuery)) is optional — implementations that do not
retain events should return an empty list.
Implementations must not throw from either method. Audit failure must never break the security flow that emitted the event; an empty list is acceptable when no retained data is available.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(AuditEvent event) Records the given event.query(AuditQuery query) Returns retained events matchingquery, oldest first.
-
Method Details
-
publish
Records the given event. Never throws.- Parameters:
event- non-nulltyped audit event
-
query
Returns retained events matchingquery, oldest first. Implementations that do not retain events return an empty list.- Parameters:
query- filter, nevernull- Returns:
- retained matching events, never
null
-