SecureSharedPreference

@Singleton
class SecureSharedPreference @Inject constructor(val context: Context)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@VisibleForTesting
fun get256RandomBytes(): ByteArray
Link copied to clipboard
Link copied to clipboard

This method resets/clears all existing values in the shared preferences synchronously

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun saveCredentials(username: String, password: CharArray)
Link copied to clipboard
suspend fun saveSessionPin(pin: CharArray, onSavedPin: () -> Unit)