Table of Contents

Method Reserve

Namespace
MailFathom.Infrastructure.Security.Passwords
Assembly
MailFathom.Infrastructure.dll

Reserve(PasswordAttempt)

Takes one attempt's verification capacity on every axis that applies, before the password is verified.

public PasswordAttemptReservation Reserve(PasswordAttempt attempt)

Parameters

attempt PasswordAttempt

What is being attempted, and the bound the surface it arrived on runs under.

Returns

PasswordAttemptReservation

The reservation, which reports whether it was granted and decides afterwards whether the attempt cost the allowance anything.

Remarks

An axis whose failure allowance is spent refuses the attempt before any permit is taken, and either axis refusing releases whatever the other had already granted, so an attempt that never reached a derivation costs nothing. The caller disposes what it gets back on every path: disposing returns the verification capacity, and Spend() is what a wrong password calls before that.

Exceptions

ArgumentNullException

Thrown when attempt is null.