Constructor PasswordAttempt
- Namespace
- MailFathom.Infrastructure.Security.Passwords
- Assembly
- MailFathom.Infrastructure.dll
PasswordAttempt(string, string?, string, int, int)
One password attempt, as the limiter counts it.
public PasswordAttempt(string SurfaceName, string? Source, string Username, int AttemptsPerMinute, int MaxConcurrentVerifications)
Parameters
SurfaceNamestringThe transport surface the attempt arrived on, so two surfaces' partitions stay apart.
SourcestringThe remote address the attempt came from, or null where this deployment cannot tell one caller's address from another's and the username is therefore the whole bound.
UsernamestringThe canonical login presented, whole, which reaches only a digest.
AttemptsPerMinuteintHow many wrong passwords each axis admits in a minute.
MaxConcurrentVerificationsintHow many verifications the surface the attempt arrived on may have in flight at once.
Remarks
ToString() is redacted, so no diagnostic can print a submitted username or a remote address by rendering the record the limiter was asked with.