C# Class JabbR.Services.MembershipService

Inheritance: IMembershipService
Afficher le fichier Open project: ucdavis/JabbR Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddUser ( string userName, string email, string password ) : JabbR.Models.ChatUser
userName string
email string
password string
Résultat JabbR.Models.ChatUser

AddUser() public méthode

public AddUser ( string userName, string providerName, string identity, string email ) : JabbR.Models.ChatUser
userName string
providerName string
identity string
email string
Résultat JabbR.Models.ChatUser

AuthenticateUser() public méthode

public AuthenticateUser ( string userName, string password ) : JabbR.Models.ChatUser
userName string
password string
Résultat JabbR.Models.ChatUser

ChangeUserName() public méthode

public ChangeUserName ( JabbR.Models.ChatUser user, string newUserName ) : void
user JabbR.Models.ChatUser
newUserName string
Résultat void

ChangeUserPassword() public méthode

public ChangeUserPassword ( JabbR.Models.ChatUser user, string oldPassword, string newPassword ) : void
user JabbR.Models.ChatUser
oldPassword string
newPassword string
Résultat void

MembershipService() public méthode

public MembershipService ( IJabbrRepository repository, ICryptoService crypto ) : System
repository IJabbrRepository
crypto ICryptoService
Résultat System

SetUserPassword() public méthode

public SetUserPassword ( JabbR.Models.ChatUser user, string password ) : void
user JabbR.Models.ChatUser
password string
Résultat void