C# Class UserManagement.Domain.Authorizer

Inheritance: IAuthorizer
Afficher le fichier Open project: LeagueOfDevelopers/LodCore Class Usage Examples

Méthodes publiques

Méthode Description
Authorize ( string email, Password password ) : AuthorizationTokenInfo
Authorizer ( System.TimeSpan tokenLifeTime, IUserRepository userRepository ) : Common.System
GetTokenInfo ( string authorizationToken ) : AuthorizationTokenInfo

Private Methods

Méthode Description
GenerateNewToken ( Account account ) : AuthorizationTokenInfo
TakeTokenByUserId ( int userId ) : AuthorizationTokenInfo

Method Details

Authorize() public méthode

public Authorize ( string email, Password password ) : AuthorizationTokenInfo
email string
password Common.Password
Résultat AuthorizationTokenInfo

Authorizer() public méthode

public Authorizer ( System.TimeSpan tokenLifeTime, IUserRepository userRepository ) : Common.System
tokenLifeTime System.TimeSpan
userRepository IUserRepository
Résultat Common.System

GetTokenInfo() public méthode

public GetTokenInfo ( string authorizationToken ) : AuthorizationTokenInfo
authorizationToken string
Résultat AuthorizationTokenInfo