C# Class Thinktecture.IdentityModel.Tokens.GenericUserNameSecurityTokenHandler

Generic security token handler for username/password type credentials
Inheritance: System.IdentityModel.Tokens.UserNameSecurityTokenHandler
Afficher le fichier Open project: IdentityModel/Thinktecture.IdentityModel.v1

Méthodes publiques

Méthode Description
GenericUserNameSecurityTokenHandler ( ) : System

Initializes a new instance of the GenericUserNameSecurityTokenHandler class.

GenericUserNameSecurityTokenHandler ( ValidateUserNameCredentialDelegate validateUserNameCredential ) : System

Initializes a new instance of the GenericUserNameSecurityTokenHandler class.

ValidateToken ( System.IdentityModel.Tokens.SecurityToken token ) : ClaimsIdentityCollection

Validates the username and password.

Méthodes protégées

Méthode Description
ValidateUserNameCredentialCore ( string userName, string password ) : bool

Validates the user name credential core.

Method Details

GenericUserNameSecurityTokenHandler() public méthode

Initializes a new instance of the GenericUserNameSecurityTokenHandler class.
public GenericUserNameSecurityTokenHandler ( ) : System
Résultat System

GenericUserNameSecurityTokenHandler() public méthode

Initializes a new instance of the GenericUserNameSecurityTokenHandler class.
public GenericUserNameSecurityTokenHandler ( ValidateUserNameCredentialDelegate validateUserNameCredential ) : System
validateUserNameCredential ValidateUserNameCredentialDelegate The credential validation callback.
Résultat System

ValidateToken() public méthode

Validates the username and password.
public ValidateToken ( System.IdentityModel.Tokens.SecurityToken token ) : ClaimsIdentityCollection
token System.IdentityModel.Tokens.SecurityToken The token.
Résultat ClaimsIdentityCollection

ValidateUserNameCredentialCore() protected méthode

Validates the user name credential core.
protected ValidateUserNameCredentialCore ( string userName, string password ) : bool
userName string Name of the user.
password string The password.
Résultat bool