C# Класс CAESDO.Recruitment.Providers.CAESDOMembershipProvider

Summary description for FRACMembershipProvider
Наследование: System.Web.Security.MembershipProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
ChangePassword ( string username, string oldPassword, string newPassword ) : bool

Changes a users password after checking that they know their old password

ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser

Creates a user from the given parameters and settings in the web.config (under the membership section)

DeleteUser ( string username, bool deleteAllRelatedData ) : bool
Equals ( object obj ) : bool
FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GeneratePassword ( ) : string
GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GetHashCode ( ) : int
GetNumberOfUsersOnline ( ) : int
GetPassword ( string username, string answer ) : string

Pulls the password out of the database if EnablePasswordRetrieval is set to true (not yet implemented).

GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser

GetUserNameByEmail ( string email ) : string
Initialize ( string name, System config ) : void
ResetPassword ( string username, string passwordAnswer ) : string

Resets a user's password if they have the correct answer to the passwordQuestion

ToString ( ) : string
UnlockUser ( string userName ) : bool
UpdateUser ( System.Web.Security.MembershipUser user ) : void
ValidateUser ( string username, string password ) : bool

Validates a user by making sure their username and password are correct in the system. Regardless of the web.config settings, the password information (salt, format) are taken from the database and then compared

Защищенные методы

Метод Описание
DecryptPassword ( byte encodedPassword ) : byte[]
EncryptPassword ( byte password ) : byte[]
OnValidatingPassword ( System.Web.Security.ValidatePasswordEventArgs e ) : void

Приватные методы

Метод Описание
CheckPassword ( string username, string password, int &status ) : bool

Checks the given password against the stored password for a user

EncodePassword ( string pass, int passwordFormat, string salt ) : string
GenerateSalt ( ) : string
GetPasswordWithFormat ( string username, int &passwordFormat, int &status, string &passwordSalt, bool &userIsApproved ) : string

Pulls out the password information for user identified by 'username', along with the password format, salt, and user approval information

UnEncodePassword ( string pass, int passwordFormat ) : string

Описание методов

ChangePassword() публичный Метод

Changes a users password after checking that they know their old password
public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string Username
oldPassword string The old password in the system
newPassword string The desired new password
Результат bool

ChangePasswordQuestionAndAnswer() публичный Метод

public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
username string
password string
newPasswordQuestion string
newPasswordAnswer string
Результат bool

CreateUser() публичный Метод

Creates a user from the given parameters and settings in the web.config (under the membership section)
public CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser
username string Kerberos LoginID of the user who created the account (or string.empty)
password string Password -- complexity determined by web.config settings
email string Email entered by user
passwordQuestion string
passwordAnswer string
isApproved bool
providerUserKey object Not used since username is always unique, we can look up with UserID when necessary
status MembershipCreateStatus
Результат System.Web.Security.MembershipUser

DecryptPassword() защищенный Метод

protected DecryptPassword ( byte encodedPassword ) : byte[]
encodedPassword byte
Результат byte[]

DeleteUser() публичный Метод

public DeleteUser ( string username, bool deleteAllRelatedData ) : bool
username string
deleteAllRelatedData bool
Результат bool

EncryptPassword() защищенный Метод

protected EncryptPassword ( byte password ) : byte[]
password byte
Результат byte[]

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

FindUsersByEmail() публичный Метод

public FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
emailToMatch string
pageIndex int
pageSize int
totalRecords int
Результат System.Web.Security.MembershipUserCollection

FindUsersByName() публичный Метод

public FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
usernameToMatch string
pageIndex int
pageSize int
totalRecords int
Результат System.Web.Security.MembershipUserCollection

GeneratePassword() публичный Метод

public GeneratePassword ( ) : string
Результат string

GetAllUsers() публичный Метод

public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
pageIndex int
pageSize int
totalRecords int
Результат System.Web.Security.MembershipUserCollection

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetNumberOfUsersOnline() публичный Метод

public GetNumberOfUsersOnline ( ) : int
Результат int

GetPassword() публичный Метод

Pulls the password out of the database if EnablePasswordRetrieval is set to true (not yet implemented).
NotSupportedException
public GetPassword ( string username, string answer ) : string
username string Username
answer string Answer to the users question
Результат string

GetUser() публичный Метод

public GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
providerUserKey object
userIsOnline bool
Результат System.Web.Security.MembershipUser

GetUser() публичный Метод

public GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser
username string Email Address of the account
userIsOnline bool
Результат System.Web.Security.MembershipUser

GetUserNameByEmail() публичный Метод

public GetUserNameByEmail ( string email ) : string
email string
Результат string

Initialize() публичный Метод

public Initialize ( string name, System config ) : void
name string
config System
Результат void

OnValidatingPassword() защищенный Метод

protected OnValidatingPassword ( System.Web.Security.ValidatePasswordEventArgs e ) : void
e System.Web.Security.ValidatePasswordEventArgs
Результат void

ResetPassword() публичный Метод

Resets a user's password if they have the correct answer to the passwordQuestion
public ResetPassword ( string username, string passwordAnswer ) : string
username string Username
passwordAnswer string
Результат string

ToString() публичный Метод

public ToString ( ) : string
Результат string

UnlockUser() публичный Метод

public UnlockUser ( string userName ) : bool
userName string
Результат bool

UpdateUser() публичный Метод

public UpdateUser ( System.Web.Security.MembershipUser user ) : void
user System.Web.Security.MembershipUser
Результат void

ValidateUser() публичный Метод

Validates a user by making sure their username and password are correct in the system. Regardless of the web.config settings, the password information (salt, format) are taken from the database and then compared
public ValidateUser ( string username, string password ) : bool
username string Unique username
password string Password to be compared against database.
Результат bool