Bewerken

Delen via


UserNamePasswordValidator.Validate(String, String) Method

Definition

When overridden in a derived class, validates the specified username and password.

public:
 abstract void Validate(System::String ^ userName, System::String ^ password);
public abstract void Validate (string userName, string password);
abstract member Validate : string * string -> unit
Public MustOverride Sub Validate (userName As String, password As String)

Parameters

userName
String

The username to validate.

password
String

The password to validate.

Remarks

Override the Validate method to specify how the username and password is validated. If the username and password do not pass validation, then throw a SecurityTokenValidationException.

Applies to