Редагувати

Поділитися через


CustomUserNameSecurityTokenAuthenticator(UserNamePasswordValidator) Constructor

Definition

Initializes a new instance of the CustomUserNameSecurityTokenAuthenticator class using the specified validator.

public:
 CustomUserNameSecurityTokenAuthenticator(System::IdentityModel::Selectors::UserNamePasswordValidator ^ validator);
public CustomUserNameSecurityTokenAuthenticator (System.IdentityModel.Selectors.UserNamePasswordValidator validator);
new System.IdentityModel.Selectors.CustomUserNameSecurityTokenAuthenticator : System.IdentityModel.Selectors.UserNamePasswordValidator -> System.IdentityModel.Selectors.CustomUserNameSecurityTokenAuthenticator
Public Sub New (validator As UserNamePasswordValidator)

Parameters

validator
UserNamePasswordValidator

A UserNamePasswordValidator that authenticates the user name and password using a custom authentication scheme.

Exceptions

validator is null.

Remarks

The UserNamePasswordValidator specified in the validator parameter is used by the ValidateUserNamePasswordCore method to authenticate the user.

Applies to