PinService class
PIN Service Handles PIN validation, requirements, and backend storage with biometric protection
Constructors
- PinService()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearPinData(
String username, {bool testMode = false}) → Future< void> - Clear PIN data
-
generateExamplePin(
) → String - Generate example PIN for testing
-
getPinRequirements(
) → Map< String, dynamic> - Get PIN requirements for UI display
-
getPinStatus(
String username) → Future< Map< String, dynamic> > - Get PIN creation status
-
isPinStored(
String username, {bool testMode = false}) → Future< bool> - Check if PIN is stored
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retrievePinSecurely(
String username, {bool testMode = false}) → Future< String?> - Retrieve PIN with biometric verification
-
storePinAfterBiometric(
String username, String pin, {String? jwtToken, bool testMode = false}) → Future< Map< String, dynamic> > - Store PIN after biometric verification
-
toString(
) → String -
A string representation of this object.
inherited
-
updatePin(
String username, String oldPin, String newPin, {bool testMode = false}) → Future< Map< String, dynamic> > - Update PIN (requires old PIN verification)
-
validatePin(
String pin) → Map< String, dynamic> - Validate PIN according to requirements
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- minimumLength → const int
- PIN validation requirements
- requireLowercase → const bool
- requireNumbers → const bool
- requireSpecialChars → const bool
- requireUppercase → const bool