Click or drag to resize

PasswordManagerValidatePassword Method

Validates a password against a given password policy.

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 9.2.2.32703 (27.03.2025)+b9af25405a8dc67f2b73227b442cec4f08fd2d8a
Syntax
C#
public static PolicyPasswordValidationResult ValidatePassword(
	PsrPolicy policy,
	string password,
	List<string> usernames = null
)

Parameters

policy
Type: PsrApi.DataPsrPolicy
The policy to validate against.
password
Type: SystemString
The password that should be validated against the policy.
usernames (Optional)
Type: System.Collections.GenericListString
(optional) list of usernames that should be taken into account when NotAllowedPasswordUsername is true.

Return Value

Type: PolicyPasswordValidationResult
See Also