vault_storage library

A barrel file that exports the public-facing API of the vault storage.

This file is the single entry point for other parts of the application to access the vault storage's features. It exports the essential interfaces, models, enums, and errors, simplifying imports and decoupling feature modules from the internal implementation details of the service.

Classes

BoxConfig
Configuration for a custom storage box.
IVaultStorage
Simple, secure storage for Flutter apps.
VaultSecurityConfig
Configuration for vault storage security features using FreeRASP
VaultStorage
Creates a new instance of IVaultStorage.
VaultStorageConfig
Global configuration for Vault Storage performance tuning.

Enums

SecurityThreat
Types of security threats that can be detected

Exceptions / Errors

AmbiguousKeyError
An error that occurs when a key exists in multiple boxes and no specific box is specified.
Base64DecodeError
An error that occurs during base64 decoding operations for file data.
Base64EncodeError
An error that occurs during base64 encoding operations for file data.
BoxNotFoundError
An error that occurs when attempting to access a custom box that was not registered during init.
DebugDetectedException
Exception thrown when debugging is detected
EmulatorDetectedException
Exception thrown when emulator is detected
FileNotFoundError
An error that occurs when a file is not found.
HookingDetectedException
Exception thrown when hooking frameworks are detected
InvalidMetadataError
An error that occurs when file metadata is invalid or incomplete.
JailbreakDetectedException
Exception thrown when jailbreak/root access is detected
KeyNotFoundError
An error that occurs when a cryptographic key is not found in secure storage.
SecurityThreatException
Exception thrown when a security threat is detected and vault operations are blocked
TamperingDetectedException
Exception thrown when app tampering is detected
UnofficialStoreDetectedException
Exception thrown when unofficial store installation is detected
VaultStorageDeleteError
An error that occurs when attempting to delete data from storage.
VaultStorageDisposalError
An error that occurs when the storage service is being disposed.
VaultStorageError
A sealed class representing the various errors that can occur within the vault storage.
VaultStorageInitializationError
An error that occurs during the initialization of the vault storage.
VaultStorageReadError
An error that occurs when attempting to read data from storage.
VaultStorageSerializationError
An error that occurs during the serialization or deserialization of data.
VaultStorageWriteError
An error that occurs when attempting to write data to storage.