Access class

The authorization requirement of an operation or screen.

Constructors

Access(String kind, List<String> keys, List<String> roles, String handler)
Binds the requirement kind, its entitlement keys, its roles and its custom handler.

Properties

handler → String
The handler name of a custom requirement (AZREQ-CUST > handler), '' for the other kinds.
final
hashCode → int
The hash code for this object.
no setterinherited
keys → List<String>
The entitlement key patterns of an entitlement requirement (AZREQ-ENTL > patterns), empty for the other kinds.
final
kind → String
public, authenticated, role, entitlement or custom.
final
roles → List<String>
The roles of a role requirement (AZREQ-ROLE > roles), empty for the other kinds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

describe() → String
The kind followed by its keys, else its roles, else its handler, as the findings quote it (e.g. entitlement orders.read).
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

Static Methods

of(Object? azreq) → Access
Reads an AZREQ section; a missing or non-mapping section gives an access of kind '' that no role reaches.