Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UserNamePasswordValidator.Validate(String, String) Method

Definition

Namespace:
System.IdentityModel.Selectors
Assembly:
System.IdentityModel.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?