SecurityConfig constructor

SecurityConfig({
  1. required bool enableEncryption,
  2. required bool enableSecureStorage,
  3. required bool sslPinning,
  4. required String encryptionKey,
})

Creates a SecurityConfig instance.

All parameters are required:

  • enableEncryption: Whether data encryption is enabled.
  • enableSecureStorage: Whether secure storage mechanisms should be used for sensitive data.
  • sslPinning: Whether SSL pinning is enabled for network connections.
  • encryptionKey: The encryption key used for data encryption.

Security Warning: Do not expose the encryptionKey in client-side code.

Implementation

SecurityConfig({
  required this.enableEncryption,
  required this.enableSecureStorage,
  required this.sslPinning,
  required this.encryptionKey,
});