C# 클래스 NauckIT.PostgreSQLProvider.PgMembershipProvider

상속: System.Web.Security.MembershipProvider
파일 보기 프로젝트 열기: dnauck/AspSQLProvider

공개 메소드들

메소드 설명
ChangePassword ( string username, string oldPassword, string newPassword ) : bool

MembershipProvider.ChangePassword

ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool

MembershipProvider.ChangePasswordQuestionAndAnswer

CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : MembershipUser

MembershipProvider.CreateUser

DeleteUser ( string username, bool deleteAllRelatedData ) : bool

MembershipProvider.DeleteUser

FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : MembershipUserCollection

MembershipProvider.FindUsersByEmail

FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : MembershipUserCollection

MembershipProvider.FindUsersByName

GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : MembershipUserCollection

MembershipProvider.GetAllUsers

GetNumberOfUsersOnline ( ) : int

MembershipProvider.GetNumberOfUsersOnline

GetPassword ( string username, string answer ) : string

MembershipProvider.GetPassword

GetUser ( object providerUserKey, bool userIsOnline ) : MembershipUser

MembershipProvider.GetUser

GetUser ( string username, bool userIsOnline ) : MembershipUser

MembershipProvider.GetUser

GetUserNameByEmail ( string email ) : string

MembershipProvider.GetUserNameByEmail

Initialize ( string name, NameValueCollection config ) : void

System.Configuration.Provider.ProviderBase.Initialize Method.

ResetPassword ( string username, string answer ) : string

MembershipProvider.ResetPassword

UnlockUser ( string userName ) : bool

MembershipProvider.UnlockUser

UpdateUser ( MembershipUser user ) : void

MembershipProvider.UpdateUser

ValidateUser ( string username, string password ) : bool

MembershipProvider.ValidateUser

비공개 메소드들

메소드 설명
CheckPassword ( string password, string dbpassword ) : bool

Compares password values based on the MembershipPasswordFormat.

EncodePassword ( string password ) : string

Encrypts, Hashes, or leaves the password clear based on the PasswordFormat.

GetConfigValue ( string configValue, string defaultValue ) : string

A helper function to retrieve config values from the configuration file.

GetConnectionString ( string connectionStringName ) : string

A helper function to retrieve the connecion string from the configuration file

GetUserFromReader ( NpgsqlDataReader reader ) : MembershipUser

A helper function that takes the current row from the NpgsqlDataReader and hydrates a MembershipUser from the values. Called by the MembershipUser.GetUser implementation.

HexToByte ( string hexString ) : byte[]

Converts a hexadecimal string to a byte array. Used to convert encryption key values from the configuration.

UnEncodePassword ( string encodedPassword ) : string

Decrypts or leaves the password clear based on the PasswordFormat.

UpdateFailureCount ( string username, FailureType failType ) : void

A helper method that performs the checks and updates associated with password failure tracking.

메소드 상세

ChangePassword() 공개 메소드

MembershipProvider.ChangePassword
public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string
oldPassword string
newPassword string
리턴 bool

ChangePasswordQuestionAndAnswer() 공개 메소드

MembershipProvider.ChangePasswordQuestionAndAnswer
public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
username string
password string
newPasswordQuestion string
newPasswordAnswer string
리턴 bool

CreateUser() 공개 메소드

MembershipProvider.CreateUser
public CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : MembershipUser
username string
password string
email string
passwordQuestion string
passwordAnswer string
isApproved bool
providerUserKey object
status MembershipCreateStatus
리턴 MembershipUser

DeleteUser() 공개 메소드

MembershipProvider.DeleteUser
public DeleteUser ( string username, bool deleteAllRelatedData ) : bool
username string
deleteAllRelatedData bool
리턴 bool

FindUsersByEmail() 공개 메소드

MembershipProvider.FindUsersByEmail
public FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : MembershipUserCollection
emailToMatch string
pageIndex int
pageSize int
totalRecords int
리턴 MembershipUserCollection

FindUsersByName() 공개 메소드

MembershipProvider.FindUsersByName
public FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : MembershipUserCollection
usernameToMatch string
pageIndex int
pageSize int
totalRecords int
리턴 MembershipUserCollection

GetAllUsers() 공개 메소드

MembershipProvider.GetAllUsers
public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : MembershipUserCollection
pageIndex int
pageSize int
totalRecords int
리턴 MembershipUserCollection

GetNumberOfUsersOnline() 공개 메소드

MembershipProvider.GetNumberOfUsersOnline
public GetNumberOfUsersOnline ( ) : int
리턴 int

GetPassword() 공개 메소드

MembershipProvider.GetPassword
public GetPassword ( string username, string answer ) : string
username string
answer string
리턴 string

GetUser() 공개 메소드

MembershipProvider.GetUser
public GetUser ( object providerUserKey, bool userIsOnline ) : MembershipUser
providerUserKey object
userIsOnline bool
리턴 MembershipUser

GetUser() 공개 메소드

MembershipProvider.GetUser
public GetUser ( string username, bool userIsOnline ) : MembershipUser
username string
userIsOnline bool
리턴 MembershipUser

GetUserNameByEmail() 공개 메소드

MembershipProvider.GetUserNameByEmail
public GetUserNameByEmail ( string email ) : string
email string
리턴 string

Initialize() 공개 메소드

System.Configuration.Provider.ProviderBase.Initialize Method.
public Initialize ( string name, NameValueCollection config ) : void
name string
config NameValueCollection
리턴 void

ResetPassword() 공개 메소드

MembershipProvider.ResetPassword
public ResetPassword ( string username, string answer ) : string
username string
answer string
리턴 string

UnlockUser() 공개 메소드

MembershipProvider.UnlockUser
public UnlockUser ( string userName ) : bool
userName string
리턴 bool

UpdateUser() 공개 메소드

MembershipProvider.UpdateUser
public UpdateUser ( MembershipUser user ) : void
user MembershipUser
리턴 void

ValidateUser() 공개 메소드

MembershipProvider.ValidateUser
public ValidateUser ( string username, string password ) : bool
username string
password string
리턴 bool