Class DefaultPasswordPolicyValidator

Assembly: redb.Identity.Core.dll

H10 — default implementation backed by
. Phase 1: length + ASCII composition rules.
Phase 2 (history) and Phase 5 (breach) hooks are wired through optional dependencies
so the same instance keeps working as the stack grows.

public sealed class DefaultPasswordPolicyValidator : IPasswordPolicyValidator

Inheritance

Object→DefaultPasswordPolicyValidator

Implements

Methods

ValidateAsync(string?, long?, CancellationToken)

Validates the candidate password against all configured rules.

public ValueTask<PasswordValidationResult> ValidateAsync(string? password, long? userId = null, CancellationToken ct = default)

ValidateAsync(string?, long?, IRedbService, CancellationToken)

The same validation with the database reads (the history lookup) through redb: what a

public ValueTask<PasswordValidationResult> ValidateAsync(string? password, long? userId, IRedbService redb, CancellationToken ct = default)

Constructors