OtpSecurityConfig class
Configuration for security and advanced validation features
Provides settings for rate limiting, biometric integration, and advanced security measures to ensure secure OTP verification.
Constructors
- OtpSecurityConfig({bool enableRateLimiting = true, int maxAttemptsPerMinute = 5, int maxAttemptsPerHour = 20, Duration lockoutDuration = const Duration(minutes: 15), bool enableBiometricIntegration = false, Duration biometricTimeout = const Duration(seconds: 30), bool enableAdvancedValidation = false, bool validationChecksum = false, String validationPattern = r'^\d{4,8}$', bool enableEncryption = false, String? encryptionKey, bool enableAuditLogging = false, bool enableSecurityMonitoring = false, bool enableAntiTampering = false, bool enableSessionManagement = false, Duration sessionTimeout = const Duration(minutes: 10)})
-
Creates a new security configuration
const
Properties
- biometricTimeout → Duration
-
Timeout for biometric operations
final
- enableAdvancedValidation → bool
-
Whether to enable advanced validation
final
- enableAntiTampering → bool
-
Whether to enable anti-tampering measures
final
- enableAuditLogging → bool
-
Whether to enable audit logging
final
- enableBiometricIntegration → bool
-
Whether to enable biometric integration
final
- enableEncryption → bool
-
Whether to enable encryption
final
- enableRateLimiting → bool
-
Whether to enable rate limiting
final
- enableSecurityMonitoring → bool
-
Whether to enable security monitoring
final
- enableSessionManagement → bool
-
Whether to enable session management
final
- encryptionKey → String?
-
Encryption key for secure operations
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lockoutDuration → Duration
-
Duration of lockout after exceeding limits
final
- maxAttemptsPerHour → int
-
Maximum attempts per hour
final
- maxAttemptsPerMinute → int
-
Maximum attempts per minute
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionTimeout → Duration
-
Session timeout duration
final
- validationChecksum → bool
-
Whether to enable checksum validation
final
- validationPattern → String
-
Regex pattern for validation
final
Methods
-
copyWith(
{bool? enableRateLimiting, int? maxAttemptsPerMinute, int? maxAttemptsPerHour, Duration? lockoutDuration, bool? enableBiometricIntegration, Duration? biometricTimeout, bool? enableAdvancedValidation, bool? validationChecksum, String? validationPattern, bool? enableEncryption, String? encryptionKey, bool? enableAuditLogging, bool? enableSecurityMonitoring, bool? enableAntiTampering, bool? enableSessionManagement, Duration? sessionTimeout}) → OtpSecurityConfig - Creates a copy of this object with the given fields replaced with the new values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited