AutocryptManager

@Singleton
class AutocryptManager @Inject constructor(context: Context)

Parses and persists Autocrypt email-to-key mappings from message headers.

Stores discovered addr → master key id associations in SharedPreferences when valid keydata is present in Autocrypt or Autocrypt-Gossip headers.

Constructors

Link copied to clipboard
@Inject
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns all stored email → key id mappings.

Link copied to clipboard
fun lookup(email: String): Long?

Returns the master key id previously associated with email, if any.

Link copied to clipboard

Processes raw header lines, extracting Autocrypt and Autocrypt-Gossip values.

Link copied to clipboard

Processes Autocrypt headers from a map (e.g. MIME header names to values).