Companion

object Companion

Properties

Link copied to clipboard
private const val androidKeyStore: String
Link copied to clipboard
private val tag: String

Functions

Link copied to clipboard
private fun createPreferencesFile(context: Context, fileName: String, aliasName: String? = null): SharedPreferences
Link copied to clipboard
private fun deleteKeyEntry(masterKeyAlias: String)
Link copied to clipboard
private fun deletePreferencesFile(context: Context, fileName: String): Boolean
Link copied to clipboard
fun getInstance(context: Context, fileName: String = "secret_shared_prefs" + context.packageName, aliasName: String = fileName): SharedPreferences

create the encrypted shared preference for the given filename

Link copied to clipboard
private fun recoverFromDefaultMasterKey(context: Context, fileName: String = "secret_shared_prefs" + context.packageName): MutableMap<String, MutableSet<String>>

This method is to extract the data from the sharedPreference which encrypted with MasterKey, and delete the master key.