StorageFileInitOptions class

Constructors

StorageFileInitOptions.new({Duration? androidAuthenticationValidityDuration, Duration? darwinTouchIDAuthenticationAllowableReuseDuration, Duration? darwinTouchIDAuthenticationForceReuseContextDuration, @Deprecated('use use androidAuthenticationValidityDuration, iosTouchIDAuthenticationAllowableReuseDuration or iosTouchIDAuthenticationForceReuseContextDuration instead') int authenticationValidityDurationSeconds = -1, bool authenticationRequired = true, bool androidBiometricOnly = true, bool darwinBiometricOnly = true})

Properties

androidAuthenticationValidityDuration Duration?
see https://developer.android.com/reference/android/security/keystore/KeyGenParameterSpec.Builder#setUserAuthenticationParameters(int,%20int)
final
androidBiometricOnly bool
Only makes difference on Android, where if set true, you can't use PIN/pattern/password to get the file. On Android < 30 this will always be ignored. (always true) https://github.com/authpass/biometric_storage/issues/12#issuecomment-900358154
final
authenticationRequired bool
Whether an authentication is required. if this is false NO BIOMETRIC CHECK WILL BE PERFORMED! and the value will simply be save encrypted. (default: true)
final
darwinBiometricOnly bool
Only for iOS and macOS: Uses .biometryCurrentSet if true, .userPresence otherwise. https://developer.apple.com/documentation/security/secaccesscontrolcreateflags/1392879-userpresence
final
darwinTouchIDAuthenticationAllowableReuseDuration Duration?
see https://developer.apple.com/documentation/localauthentication/lacontext/1622329-touchidauthenticationallowablere
final
darwinTouchIDAuthenticationForceReuseContextDuration Duration?
To prevent forcing the user to authenticate again after unlocking once we can reuse the LAContext object for the given amount of time. see https://github.com/authpass/biometric_storage/pull/73 This is pretty much undocumented behavior, but works similar to androidAuthenticationValidityDuration.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited