Identity class
Who the Hub says you are.
The answer to GET /whoami, and the reason a login is a real login: without
asking, a bad token would sail through and fail on the first screen instead.
- Annotations
-
- @immutable
Constructors
Properties
- authenticated → bool
-
Whether a credential was presented at all.
final
- canOperate → bool
-
Whether these roles permit changing the fleet, as opposed to watching it.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- principal → String
-
The principal id (
alice, orapifor the Hub's own token).final -
roles
→ Set<
String> -
The roles the Hub resolved for this credential.
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