Principal class

Constructors

Principal({required String userKey, required String tenantKey, required Set<String> permissions, required bool isAdministrator, bool isAuthenticated = false})
const
Principal.unauthenticated()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isAdministrator bool
final
isAuthenticated bool
final
permissions Set<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tenantKey String
Identifies the tenant to which the user belongs
final
userKey String
identifies the user uniquely amongst all other users from the same tenant, which is identified in tenantKey
final

Methods

hasPermission(String permission) bool
Returns a value indicating whether the user has a permission permission.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
throwIfUnauthenticated() → void
toString() String
A string representation of this object.
inherited

Operators

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