C# Class Candor.Configuration.Provider.MockUserProvider

Inheritance: Candor.Security.UserProvider
Datei anzeigen Open project: michael-lang/candor-common

Public Methods

Method Description
GetLatestUserSessions ( System.Guid userId, Int32 take ) : List
GetUserByID ( System.Guid userId ) : User
GetUserByName ( string name ) : User
MockUserProvider ( ) : System

Protected Methods

Method Description
GetRecentFailedUserNameAuthenticationCount ( string name ) : int
GetSessionAuthenticationHistory ( UserSession session ) : AuthenticationHistory
GetUserSalt ( System.Guid userId ) : UserSalt
GetUserSession ( System.Guid renewalToken ) : UserSession
InsertUserHistory ( AuthenticationHistory history ) : void
SaveUser ( User user ) : void
SaveUserSalt ( UserSalt salt ) : void
SaveUserSession ( UserSession session ) : void

Method Details

GetLatestUserSessions() public method

public GetLatestUserSessions ( System.Guid userId, Int32 take ) : List
userId System.Guid
take System.Int32
return List

GetRecentFailedUserNameAuthenticationCount() protected method

protected GetRecentFailedUserNameAuthenticationCount ( string name ) : int
name string
return int

GetSessionAuthenticationHistory() protected method

protected GetSessionAuthenticationHistory ( UserSession session ) : AuthenticationHistory
session Candor.Security.UserSession
return Candor.Security.AuthenticationHistory

GetUserByID() public method

public GetUserByID ( System.Guid userId ) : User
userId System.Guid
return Candor.Security.User

GetUserByName() public method

public GetUserByName ( string name ) : User
name string
return Candor.Security.User

GetUserSalt() protected method

protected GetUserSalt ( System.Guid userId ) : UserSalt
userId System.Guid
return Candor.Security.UserSalt

GetUserSession() protected method

protected GetUserSession ( System.Guid renewalToken ) : UserSession
renewalToken System.Guid
return Candor.Security.UserSession

InsertUserHistory() protected method

protected InsertUserHistory ( AuthenticationHistory history ) : void
history Candor.Security.AuthenticationHistory
return void

MockUserProvider() public method

public MockUserProvider ( ) : System
return System

SaveUser() protected method

protected SaveUser ( User user ) : void
user Candor.Security.User
return void

SaveUserSalt() protected method

protected SaveUserSalt ( UserSalt salt ) : void
salt Candor.Security.UserSalt
return void

SaveUserSession() protected method

protected SaveUserSession ( UserSession session ) : void
session Candor.Security.UserSession
return void