AuthorizationStore
Encrypted local storage for authorization records.
Follows the same encryption pattern as SeedVault: AES-256-GCM with the master key from Android Keystore, atomic writes via temp-file-and-rename.
All read/write operations require pre-authenticated ciphers from BiometricGate. The Keystore master key is biometric-gated (per-use), so callers must obtain a cipher through biometric authentication before calling these methods.
Records are queryable by DID, credential ID, and revocation status. Revoked records are kept for audit trail — never deleted.
Functions
Finds all active (non-revoked) authorization records for a DID.
Finds a specific record by ID.
Generates a unique ID for a new authorization record.
Whether any authorization records exist on disk.
Lists all records (active and revoked) for audit purposes.
Creates a cipher initialized for decrypting the authorization store file.
Saves a new authorization record.