PluginPermissionGate class
Single authority for permission approval store, deny-by-default runtime checks, and audit logging.
Constructors
Properties
-
auditLog
→ List<
PermissionAuditRecord> -
Get unmodifiable list of audit log records.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
approvePermission(
String pluginId, PluginPermission permission) → void - Explicitly approve a permission grant for a specific plugin ID.
-
check(
{required PluginManifest manifest, required PluginPermission permission, required String operationAttempted, bool throwOnDeny = false}) → bool -
Evaluate whether an attempted operation backed by
permissionis allowed formanifest. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryStatus(
PluginManifest manifest) → PermissionStatusSummary - Generate roadmap-style permission status summary (✓/✗ per permission) for a manifest.
-
revokePermission(
String pluginId, PluginPermission permission) → void - Revoke an approved permission grant for a specific plugin ID.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited