KeyListViewModel
ViewModel backing the key list and key detail screens.
Exposes the observable key list plus loading/error state, and coordinates all mutating key operations against the repository and CryptoOperations. Every passphrase CharArray is zeroed once the corresponding operation completes.
Constructors
Functions
Adds a subkey of subkeyType to the secret key keyId and persists the updated public/secret rings. The passphrase is wiped on completion.
Signs (certifies) the userId of targetKeyId using certifierKeyId. The passphrase is wiped on completion.
Re-encrypts the secret key keyId from oldPassphrase to newPassphrase. Both passphrase arrays are wiped on completion.
Clears the current error message.
Generates a new key ring for userId and imports it into the repository. The passphrase is wiped on completion; onDone runs on success.
Generates a revocation certificate for keyId with the given reasonText and delivers the armored bytes via onDone. The passphrase is wiped after.
Imports an ASCII-armored key ring; secret marks it as a secret import.
Refreshes all keys from the keyserver, reporting the success count via onDone.
Refreshes a single key keyId from the configured keyserver.
Surfaces an externally produced error message to the UI.
Updates the local owner-trust level for keyId.
Publishes the public key keyId to the configured keyserver.