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

addSharedProfile({required String profileId, required SharedProfileDto sharedProfile, VaultCancelToken? cancelToken}) Future<void>
profileId - Identifier of the profile to which add a shared storage sharedProfile - Shared profile info including kek and id cancelToken - 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.
shareProfile({required String profileId, required String toDid, required Permissions permissions, VaultCancelToken? cancelToken}) Future<SharedProfileDto>
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.