LoggedInUser class
Represents a user who is currently logged into the system.
The LoggedInUser class provides access to the user's account details,
their private key for cryptographic operations, and the access token
used for authenticated requests.
Constructors
- LoggedInUser({required LocalityUser user, required AccessToken accessToken, required String privateKey})
-
Creates a new instance of
LoggedInUserwith the provided user details.
Properties
- accessToken → AccessToken
-
The access token used to authenticate the user's requests.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- privateKey → String
-
The private key of the user, stored as a string.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → LocalityUser
-
The logged-in user's information, encapsulated in a LocalityUser object.
final
Methods
-
getKeyFor(
LocalityUser localityUser, {}) → Future< ChaCha20Key> - Retrieves or generates a shared key for secure communication with another user.
-
getPersonalKey(
) → ChaCha20Key - Retrieves the personal encryption key of the logged-in user.
-
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