Class AuthorizationEngine
java.lang.Object
zeroecho.pki.server.AuthorizationEngine
Deterministic side-effect-free default-deny authorization engine.
Evaluation is linear in the number of supplied grants and uses constant auxiliary memory. Callers supply an immutable snapshot of assignments for one decision; the engine never reads persistence or invokes external code.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSafe decision codes that reveal no protected-object existence.static final recordFinite safe authorization result.static final recordOne complete authorization input. -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationEngine(Clock clock) Creates an engine using an injected authoritative decision clock. -
Method Summary
Modifier and TypeMethodDescriptionauthorize(AuthorizationEngine.Request request) Evaluates one request with explicit-deny precedence.
-
Constructor Details
-
AuthorizationEngine
Creates an engine using an injected authoritative decision clock.- Parameters:
clock- injected clock
-
-
Method Details
-
authorize
Evaluates one request with explicit-deny precedence.- Parameters:
request- complete immutable input- Returns:
- safe finite decision
-