SecureVaultFactory

actual class 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.

expect class SecureVaultFactory

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
SecureVault(config)

Platform entry point for building SecureVault instances.

Since

0.1.0

actual class SecureVaultFactory

iOS implementation. The Keychain is a process-wide singleton, so no platform handle is required at construction time.

Constructors

Link copied to clipboard
constructor(context: <Error class: unknown class>)
constructor()

Functions

Link copied to clipboard
actual fun create(config: VaultConfig): SecureVault
expect fun create(config: VaultConfig): SecureVault

Builds a SecureVault for the given config. Multiple calls with the same VaultConfig.namespace return independent instances that address the same underlying storage.

actual fun create(config: <Error class: unknown class>): <Error class: unknown class>