Interface AuditEvent

All Known Implementing Classes:
AccessDenied, AccessGranted, ActionDenied, ApiKeyDenied, ApiKeyUsed, BootstrapAdminCreated, BootstrapTokenRejected, BruteForceLimitReached, CredentialRehashed, CredentialStatusChanged, CredentialVerificationFailed, CredentialVerificationSucceeded, EmailVerificationRequested, EmailVerified, LoginFailed, LoginSucceeded, LogoutPerformed, PasswordResetCompleted, PasswordResetRequested, PolicyEvaluated, RateLimitExceeded, RoleAssigned, RoleRevoked, SessionCreated, SessionExpired, SessionInvalidated, SessionStale, StepUpChallenged, TokenRotated, UserCreated, UserDeleted

Sealed root of the typed security audit event hierarchy.

Each subtype is an immutable record that carries only the fields meaningful for its category — there is no shared map of free-form attributes. Use pattern matching (switch on AuditEvent) to consume events.

Every variant carries a non-null timestamp captured at the moment the event was created.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    The UTC instant at which this event was created.
  • Method Details

    • timestamp

      Instant timestamp()
      The UTC instant at which this event was created. Never null.