SecurityLayer class abstract

The contract every security layer in the SIMOSEC pipeline must implement.

Layers are intentionally simple and single-responsibility (SRP): each layer inspects a RequestContext and returns a SecurityResult describing whether the request should continue. The SecurityEngine is responsible for sequencing, short-circuiting, and aggregation — layers should never know about each other directly.

To add a new layer: implement this interface and register an instance with SecurityEngine. No changes to the engine or other layers are required (Open/Closed Principle).

Implementers

Constructors

SecurityLayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
A short, stable, human-readable name used in logs and results.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(RequestContext context) Future<SecurityResult>
Inspects context and returns a SecurityResult.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited