C# Class ForumServer.Security.SecurityManager

Inheritance: ISecurityManager
Show file Open project: sagioto/forum

Public Methods

Method Description
AuthenticateAdmin ( string username, string password ) : System.Result
AuthenticateModerator ( string username, string password ) : System.Result
AuthenticateUser ( string username, string password ) : System.Result
AuthorizedLogin ( string username, string password ) : System.Result
AuthorizedLogout ( string username ) : System.Result
AuthorizedRegister ( string username, string password ) : System.Result
IsAuthorizedToEdit ( string username, Postkey postkey, string password ) : System.Result
IsAuthorizedToEditSubforums ( string username ) : System.Result
IsAuthorizedToPost ( string username, string subforum ) : System.Result
IsLoggedin ( string username ) : bool
SecurityManager ( IDataManager dataManager, String>.ConcurrentDictionary subscribed ) : System

Private Methods

Method Description
IsUserLoggendIn ( User user ) : bool

Method Details

AuthenticateAdmin() public method

public AuthenticateAdmin ( string username, string password ) : System.Result
username string
password string
return System.Result

AuthenticateModerator() public method

public AuthenticateModerator ( string username, string password ) : System.Result
username string
password string
return System.Result

AuthenticateUser() public method

public AuthenticateUser ( string username, string password ) : System.Result
username string
password string
return System.Result

AuthorizedLogin() public method

public AuthorizedLogin ( string username, string password ) : System.Result
username string
password string
return System.Result

AuthorizedLogout() public method

public AuthorizedLogout ( string username ) : System.Result
username string
return System.Result

AuthorizedRegister() public method

public AuthorizedRegister ( string username, string password ) : System.Result
username string
password string
return System.Result

IsAuthorizedToEdit() public method

public IsAuthorizedToEdit ( string username, Postkey postkey, string password ) : System.Result
username string
postkey Postkey
password string
return System.Result

IsAuthorizedToEditSubforums() public method

public IsAuthorizedToEditSubforums ( string username ) : System.Result
username string
return System.Result

IsAuthorizedToPost() public method

public IsAuthorizedToPost ( string username, string subforum ) : System.Result
username string
subforum string
return System.Result

IsLoggedin() public method

public IsLoggedin ( string username ) : bool
username string
return bool

SecurityManager() public method

public SecurityManager ( IDataManager dataManager, String>.ConcurrentDictionary subscribed ) : System
dataManager IDataManager
subscribed String>.ConcurrentDictionary
return System