KeyRepository
Domain repository for PGP key ring lifecycle: import, export, certification, keyserver sync, and trust management.
Combines Room metadata, encrypted blob storage, and the PGP engine. UI and service layers depend on this interface rather than KeyRepositoryImpl.
Inheritors
Functions
Certifies targetKeyId with certifierKeyId and embeds the signature in stored public material.
Convenience wrapper around replaceSecretKeyRing after passphrase change.
Returns the raw armored blob (secret or public) for keyId.
Returns armored public key bytes, deriving from secret if no public blob exists.
Returns armored secret key bytes, or null if not a secret key or missing.
Loads key detail and subkeys, or null if missing or blob is unreadable.
Persists a newly generated key pair (separate public and secret armored blocks).
Imports an armored key ring from file or clipboard.
Observes all stored keys with primary user ids, ordered by creation time.
Removes database entries whose blob files are missing from disk.
Refreshes public key material from a keyserver and updates metadata.
Replaces on-disk secret and public blobs after passphrase or uid changes.
Searches keys by fingerprint fragment.
Sets local trust level (0–3) for keyId.