SecurityConfig constructor
- @Deprecated('No listener terminates TLS via this config; enabling it only ' 'validates that the certificate files exist. This option is ignored.') bool enableTLS = false,
- @Deprecated('No listener terminates TLS via this config; see enableTLS. ' 'This option is ignored.') String? tlsCertificatePath,
- @Deprecated('No listener terminates TLS via this config; see enableTLS. ' 'This option is ignored.') String? tlsPrivateKeyPath,
- @Deprecated('Key rotation is not implemented; this flag is ignored.') bool enableKeyRotation = true,
- @Deprecated('Key rotation is not implemented; this flag is ignored.') Duration keyRotationInterval = const Duration(days: 30),
- @Deprecated('No live code path enforces authentication attempt limits; ' 'this option is ignored.') int maxAuthAttempts = 3,
- @Deprecated('No live code path enforces rate limiting; ' 'this option is ignored.') bool enableRateLimiting = true,
- @Deprecated('No live code path enforces rate limiting; ' 'this option is ignored.') int maxRequestsPerMinute = 100,
- int dhtDifficulty = 0,
- bool enableDenylist = false,
- String? denylistPath,
- String? denylistStoragePath,
- Duration denylistRefreshInterval = const Duration(hours: 1),
- @Deprecated('The denylist loader auto-detects the source format; ' 'this option is ignored.') bool denylistCompactFormat = true,
- String denylistDefaultAction = 'block',
Creates a new SecurityConfig with default encryption and rotation settings.
Implementation
const SecurityConfig({
@Deprecated(
'No listener terminates TLS via this config; enabling it only '
'validates that the certificate files exist. This option is ignored.',
)
this.enableTLS = false,
@Deprecated(
'No listener terminates TLS via this config; see enableTLS. '
'This option is ignored.',
)
this.tlsCertificatePath,
@Deprecated(
'No listener terminates TLS via this config; see enableTLS. '
'This option is ignored.',
)
this.tlsPrivateKeyPath,
@Deprecated('Key rotation is not implemented; this flag is ignored.')
this.enableKeyRotation = true,
@Deprecated('Key rotation is not implemented; this flag is ignored.')
this.keyRotationInterval = const Duration(days: 30),
@Deprecated(
'No live code path enforces authentication attempt limits; '
'this option is ignored.',
)
this.maxAuthAttempts = 3,
@Deprecated(
'No live code path enforces rate limiting; '
'this option is ignored.',
)
this.enableRateLimiting = true,
@Deprecated(
'No live code path enforces rate limiting; '
'this option is ignored.',
)
this.maxRequestsPerMinute = 100,
this.dhtDifficulty = 0, // SEC-005: Default disabled
this.enableDenylist = false,
this.denylistPath,
this.denylistStoragePath,
this.denylistRefreshInterval = const Duration(hours: 1),
@Deprecated(
'The denylist loader auto-detects the source format; '
'this option is ignored.',
)
this.denylistCompactFormat = true,
this.denylistDefaultAction = 'block',
});