C# Class JabbR.Services.MembershipService

Inheritance: IMembershipService
Mostrar archivo Open project: ucdavis/JabbR Class Usage Examples

Public Methods

Method Description
AddUser ( string userName, string email, string password ) : JabbR.Models.ChatUser
AddUser ( string userName, string providerName, string identity, string email ) : JabbR.Models.ChatUser
AuthenticateUser ( string userName, string password ) : JabbR.Models.ChatUser
ChangeUserName ( JabbR.Models.ChatUser user, string newUserName ) : void
ChangeUserPassword ( JabbR.Models.ChatUser user, string oldPassword, string newPassword ) : void
MembershipService ( IJabbrRepository repository, ICryptoService crypto ) : System
SetUserPassword ( JabbR.Models.ChatUser user, string password ) : void

Private Methods

Method Description
EnsureProviderAndIdentityAvailable ( string providerName, string identity ) : void
EnsureSaltedPassword ( JabbR.Models.ChatUser user, string password ) : void
EnsureUserNameIsAvailable ( string userName ) : void
IsValidUserName ( string name ) : bool
NormalizeUserName ( string userName ) : string
ProviderAndIdentityExist ( string providerName, string identity ) : bool
ThrowPasswordIsRequired ( ) : void
ThrowProviderAndIdentityExist ( string providerName, string identity ) : void
ThrowUserExists ( string userName ) : void
UserExists ( string userName ) : bool
ValidatePassword ( string password ) : void

Method Details

AddUser() public method

public AddUser ( string userName, string email, string password ) : JabbR.Models.ChatUser
userName string
email string
password string
return JabbR.Models.ChatUser

AddUser() public method

public AddUser ( string userName, string providerName, string identity, string email ) : JabbR.Models.ChatUser
userName string
providerName string
identity string
email string
return JabbR.Models.ChatUser

AuthenticateUser() public method

public AuthenticateUser ( string userName, string password ) : JabbR.Models.ChatUser
userName string
password string
return JabbR.Models.ChatUser

ChangeUserName() public method

public ChangeUserName ( JabbR.Models.ChatUser user, string newUserName ) : void
user JabbR.Models.ChatUser
newUserName string
return void

ChangeUserPassword() public method

public ChangeUserPassword ( JabbR.Models.ChatUser user, string oldPassword, string newPassword ) : void
user JabbR.Models.ChatUser
oldPassword string
newPassword string
return void

MembershipService() public method

public MembershipService ( IJabbrRepository repository, ICryptoService crypto ) : System
repository IJabbrRepository
crypto ICryptoService
return System

SetUserPassword() public method

public SetUserPassword ( JabbR.Models.ChatUser user, string password ) : void
user JabbR.Models.ChatUser
password string
return void