StoreRegistry

Registry of encrypted stores to re-encrypt when KeyRotator.rotateKeyIfNeeded returns true.

Register stores during app startup (before concurrent CryptoRuntime.initialize). reEncryptAll runs handles sequentially so a failure fails closed (REQ-ROT-03).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun reEncryptAll()

Sequentially invokes EncryptedStoreHandle.reEncryptInPlace on all registered handles.

Link copied to clipboard

Registers handle if not already present.

Link copied to clipboard
fun size(): Int

Test / diagnostics: number of registered handles.

Link copied to clipboard

Removes handle from the registry if present.