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).
Constructors
Properties
Methods
-
check(
RequestContext context) → Future< SecurityResult> -
Inspects
contextand 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