Vault class
Manages vault operations and profile repositories.
Properties
- defaultProfileRepository → ProfileRepository
-
Retrieves the default profile repository.
no setter
- defaultProfileRepositoryId ← String
-
Sets the default profile repository ID.
no getter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
profileRepositories
→ Map<
String, ProfileRepository> -
Retrieves the map of profile repositories.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
profileId
- Identifier of the profile to which add a shared storagesharedProfile
- Shared profile info including kek and idcancelToken
- Optional cancel token for the operation. -
ensureInitialized(
) → Future< void> - Ensures the vault is initialized by configuring all profile repositories.
-
listProfiles(
{VaultCancelToken? cancelToken}) → Future< List< Profile> > - Retrieves a list of all profiles from all repositories.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeProfileAccess(
{required String profileId, required String granteeDid, VaultCancelToken? cancelToken}) → Future< void> - Revokes access to a profile for a specific user.
- Shares a profile with another user.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromVaultStore(
VaultStore vaultStore, {required Map< String, ProfileRepository> profileRepositories, String? defaultProfileRepositoryId}) → Future<Vault> - Creates a Vault instance from an existing vault store.