SecurityConfig constructor
- bool enableTLS = false,
- String? tlsCertificatePath,
- String? tlsPrivateKeyPath,
- bool enableKeyRotation = true,
- Duration keyRotationInterval = const Duration(days: 30),
- int maxAuthAttempts = 3,
- bool enableRateLimiting = true,
- int maxRequestsPerMinute = 100,
- int dhtDifficulty = 0,
- bool enableDenylist = false,
- String? denylistPath,
- String? denylistStoragePath,
- Duration denylistRefreshInterval = const Duration(hours: 1),
- bool denylistCompactFormat = true,
- String denylistDefaultAction = 'block',
Creates a new SecurityConfig with default encryption and rotation settings.
Implementation
const SecurityConfig({
this.enableTLS = false,
this.tlsCertificatePath,
this.tlsPrivateKeyPath,
this.enableKeyRotation = true,
this.keyRotationInterval = const Duration(days: 30),
this.maxAuthAttempts = 3,
this.enableRateLimiting = true,
this.maxRequestsPerMinute = 100,
this.dhtDifficulty = 0, // SEC-005: Default disabled
this.enableDenylist = false,
this.denylistPath,
this.denylistStoragePath,
this.denylistRefreshInterval = const Duration(hours: 1),
this.denylistCompactFormat = true,
this.denylistDefaultAction = 'block',
});