OhosOptions constructor
const
OhosOptions({
- bool resetOnError = false,
- OhosKeyCipherAlgorithm ohosKeyCipherAlgorithm = OhosKeyCipherAlgorithm.RSA_ECB_PKCS1Padding,
- OhosStorageCipherAlgorithm ohosStorageCipherAlgorithm = OhosStorageCipherAlgorithm.AES_CBC_PKCS7Padding,
- String? preferencesKeyPrefix,
Implementation
const OhosOptions({
bool encryptedSharedPreferences = false,
bool resetOnError = false,
OhosKeyCipherAlgorithm ohosKeyCipherAlgorithm =
OhosKeyCipherAlgorithm.RSA_ECB_PKCS1Padding,
OhosStorageCipherAlgorithm ohosStorageCipherAlgorithm =
OhosStorageCipherAlgorithm.AES_CBC_PKCS7Padding,
this.sharedPreferencesName,
this.preferencesKeyPrefix,
}) : _encryptedSharedPreferences = encryptedSharedPreferences,
_resetOnError = resetOnError,
_ohosKeyCipherAlgorithm = ohosKeyCipherAlgorithm,
_ohosStorageCipherAlgorithm = ohosStorageCipherAlgorithm;