SecureVaultFactory
Android implementation. Hold on to the application Context only — never the supplied one — so factories created inside an Activity or Fragment do not leak it.
Deprecated
Use the top-level SecureVault(config) factory function. On Android the application Context is captured automatically by androidx.startup — no factory needed. SecureVaultFactory will be removed in 0.3.0.
Replace with
import io.github.alimsrepo.secure.vault.SecureVault
Content copied to clipboard
SecureVault(config)Content copied to clipboard
Platform entry point for building SecureVault instances.
Since
0.1.0
iOS implementation. The Keychain is a process-wide singleton, so no platform handle is required at construction time.
Constructors
Functions
Link copied to clipboard
Builds a SecureVault for the given config. Multiple calls with the same VaultConfig.namespace return independent instances that address the same underlying storage.