AirAudit class
Centralized audit logging for security-sensitive operations
- Inheritance
-
- Object
- ChangeNotifier
- AirAudit
Constructors
- AirAudit()
-
factory
Properties
- count → int
-
Get entries count
no setter
-
entries
→ List<
AuditEntry> -
Get all audit entries
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
recentViolations
→ List<
AuditEntry> -
Get recent violations
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clear(
) → void - Clear all entries (for testing)
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
log(
{required AuditType type, required String action, required String moduleId, String? targetModuleId, Map< String, dynamic> ? context, AuditSeverity severity = AuditSeverity.low, bool success = true}) → void - Log a security audit event
-
logSecurityViolation(
{required String violation, required String moduleId, Map< String, dynamic> ? context}) → void - Log a security violation
-
logSensitiveDataAccess(
{required String dataKey, required String callerModuleId, String? reason}) → void - Log a sensitive data access
-
logServiceAccess(
{required String serviceName, required String callerModuleId, required String ownerModuleId, required bool granted}) → void - Log a service access
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
query(
{String? moduleId, AuditType? type, DateTime? since, DateTime? until, AuditSeverity? minSeverity, bool? successOnly}) → List< AuditEntry> - Query audit entries
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited