PermissionManager class abstract

Abstract interface for elements that can have protection domains.

{@template protection_element_features}

Key Features

  • Protection domain integration
  • Permission checking

Implementations

Typically implemented by:

  • Class for class-level annotations
  • Method for method annotations
  • Field for field annotations
  • Parameter for parameter annotations {@endtemplate}

Constructors

PermissionManager()
Abstract interface for elements that can have protection domains.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkAccess(String operation, DomainPermission permission) → void
Verifies access permissions before performing sensitive operations.
getAuthor() → Author?
Retrieves the Author annotation applied to this element, if present.
getProtectionDomain() → ProtectionDomain
Gets the protection domain governing access to this element.
getVersion() → Version
Retrieves the version metadata associated with this declaration, if any.
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