AuthorizationResult class

The result of evaluating a ZenithPolicy against a UserSecurityContext.

Constructors

AuthorizationResult({required bool isAuthorized, String? reason})
Creates an AuthorizationResult.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isAuthorized → bool
Whether the policy grants access.
final
reason → String?
Human-readable reason for the decision (populated on denial).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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