OhosOptions constructor

const OhosOptions({
  1. bool encryptedSharedPreferences = false,
  2. bool resetOnError = false,
  3. OhosKeyCipherAlgorithm ohosKeyCipherAlgorithm = OhosKeyCipherAlgorithm.RSA_ECB_PKCS1Padding,
  4. OhosStorageCipherAlgorithm ohosStorageCipherAlgorithm = OhosStorageCipherAlgorithm.AES_CBC_PKCS7Padding,
  5. String? sharedPreferencesName,
  6. 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;