C# Class Contrive.Auth.UserService

Inheritance: IUserService
Afficher le fichier Open project: alanstevens/Contrive

Méthodes publiques

Свойство Type Description
NewUser Func

Méthodes publiques

Méthode Description
ChangePassword ( string userName, string oldPassword, string newPassword ) : bool
CreateUser ( string userName, string password, string emailAddress, string firstName = null, string lastName = null ) : UserCreateStatus
DeleteAccount ( string userName ) : bool
GetUserByEmailAddress ( string emailAddress ) : IUser
GetUserByUserName ( string userName ) : IUser
GetUsersForUserNames ( IEnumerable users ) : IEnumerable
UpdateUser ( IUser user ) : void
UserService ( IUserRepository userRepository, ICryptographer cryptographer, IUserServiceSettings settings ) : System
ValidateUser ( string userName, string password ) : IUser

Private Methods

Méthode Description
EncodePassword ( string password, string passwordSalt ) : string
IsValidPassword ( string password ) : bool
VerifyPassword ( IUser user, string password ) : bool
VerifyUser ( IUser user, string password ) : bool
VerifyUserExists ( string userName ) : IUser

Method Details

ChangePassword() public méthode

public ChangePassword ( string userName, string oldPassword, string newPassword ) : bool
userName string
oldPassword string
newPassword string
Résultat bool

CreateUser() public méthode

public CreateUser ( string userName, string password, string emailAddress, string firstName = null, string lastName = null ) : UserCreateStatus
userName string
password string
emailAddress string
firstName string
lastName string
Résultat UserCreateStatus

DeleteAccount() public méthode

public DeleteAccount ( string userName ) : bool
userName string
Résultat bool

GetUserByEmailAddress() public méthode

public GetUserByEmailAddress ( string emailAddress ) : IUser
emailAddress string
Résultat IUser

GetUserByUserName() public méthode

public GetUserByUserName ( string userName ) : IUser
userName string
Résultat IUser

GetUsersForUserNames() public méthode

public GetUsersForUserNames ( IEnumerable users ) : IEnumerable
users IEnumerable
Résultat IEnumerable

UpdateUser() public méthode

public UpdateUser ( IUser user ) : void
user IUser
Résultat void

UserService() public méthode

public UserService ( IUserRepository userRepository, ICryptographer cryptographer, IUserServiceSettings settings ) : System
userRepository IUserRepository
cryptographer ICryptographer
settings IUserServiceSettings
Résultat System

ValidateUser() public méthode

public ValidateUser ( string userName, string password ) : IUser
userName string
password string
Résultat IUser

Property Details

NewUser public_oe static_oe property

This abstraction enables a consumer to return their own IUser implementation. This delegate can be populated at application startup using an IStartupTask or some other mean.
public static Func NewUser
Résultat Func