EncryptedCredentialStore
Keystore-backed encrypted storage for every account's secrets (passwords, tokens, homeserver URLs) and small metadata (protocol, display name).
Backed by EncryptedSharedPreferences with an MasterKey AES-256-GCM master key. Every value is namespaced by accountId so multiple accounts of the same or different protocols never collide ("<accountId>:<key>").
Functions
Returns the stored display name for accountId, or null if unknown.
Returns the stored protocol id for accountId, or null if unknown.
Returns the global Tor SOCKS5 proxy password, or null if not configured.
Returns every account id present in the store — derived from the namespace prefix of each stored key, filtered to only ids that have a recorded protocol.
Records the protocol id and human-readable displayName for accountId.
Stores (or clears, if password is null/blank) the global Tor SOCKS5 proxy password.
Deletes every stored key (secrets + metadata) belonging to accountId.