C# 클래스 BgEngine.Security.Services.CodeFirstSecurity

파일 보기 프로젝트 열기: yagopv/BgEngine

Private Properties

프로퍼티 타입 설명
IsAccountLockedOutInternal bool
IsUserLoggedOn bool
VerifyProvider BgEngine.Infraestructure.Security.CodeFirstExtendedProvider

공개 메소드들

메소드 설명
ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
CreateAccount ( string userName, string password, string email, bool requireConfirmationToken = false ) : string
CreateAccount ( string userName, string password, string email, string firstname, string lastname, string timezone, string culture, bool requireConfirmationToken = false ) : string
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 1440 ) : string
GetCreateDate ( string userName ) : System.DateTime
GetLastPasswordFailureDate ( string userName ) : System.DateTime
GetPasswordChangedDate ( string userName ) : System.DateTime
GetPasswordFailuresSinceLastSuccess ( string userName ) : int
GetUserId ( string userName ) : System.Guid
GetUserIdFromPasswordResetToken ( string token ) : System.Guid
GetUserMail ( string userName ) : string
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, System.TimeSpan interval ) : bool
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool
IsConfirmed ( string userName ) : bool
IsCurrentUser ( string userName ) : bool
IsEmpty ( string value ) : bool
Login ( string userNameOrEmail, string password, bool persistCookie ) : bool
Logout ( ) : void
RequireAuthenticatedUser ( ) : void
RequireRoles ( ) : void
RequireUser ( System.Guid userId ) : void
RequireUser ( string userName ) : void
ResetPassword ( string passwordResetToken, string newPassword ) : bool
SetStatus ( this response, HttpStatusCode httpStatusCode ) : void
SetStatus ( this response, int httpStatusCode ) : void
UserExists ( string userName ) : bool

비공개 메소드들

메소드 설명
IsAccountLockedOutInternal ( CodeFirstExtendedProvider provider, string userName, int allowedPasswordAttempts, System.TimeSpan interval ) : bool
IsUserLoggedOn ( System.Guid userId ) : bool
VerifyProvider ( ) : CodeFirstExtendedProvider

메소드 상세

ChangePassword() 공개 정적인 메소드

public static ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
userName string
currentPassword string
newPassword string
리턴 bool

ConfirmAccount() 공개 정적인 메소드

public static ConfirmAccount ( string accountConfirmationToken ) : bool
accountConfirmationToken string
리턴 bool

CreateAccount() 공개 정적인 메소드

public static CreateAccount ( string userName, string password, string email, bool requireConfirmationToken = false ) : string
userName string
password string
email string
requireConfirmationToken bool
리턴 string

CreateAccount() 공개 정적인 메소드

public static CreateAccount ( string userName, string password, string email, string firstname, string lastname, string timezone, string culture, bool requireConfirmationToken = false ) : string
userName string
password string
email string
firstname string
lastname string
timezone string
culture string
requireConfirmationToken bool
리턴 string

GeneratePasswordResetToken() 공개 정적인 메소드

public static GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 1440 ) : string
userName string
tokenExpirationInMinutesFromNow int
리턴 string

GetCreateDate() 공개 정적인 메소드

public static GetCreateDate ( string userName ) : System.DateTime
userName string
리턴 System.DateTime

GetLastPasswordFailureDate() 공개 정적인 메소드

public static GetLastPasswordFailureDate ( string userName ) : System.DateTime
userName string
리턴 System.DateTime

GetPasswordChangedDate() 공개 정적인 메소드

public static GetPasswordChangedDate ( string userName ) : System.DateTime
userName string
리턴 System.DateTime

GetPasswordFailuresSinceLastSuccess() 공개 정적인 메소드

public static GetPasswordFailuresSinceLastSuccess ( string userName ) : int
userName string
리턴 int

GetUserId() 공개 정적인 메소드

public static GetUserId ( string userName ) : System.Guid
userName string
리턴 System.Guid

GetUserIdFromPasswordResetToken() 공개 정적인 메소드

public static GetUserIdFromPasswordResetToken ( string token ) : System.Guid
token string
리턴 System.Guid

GetUserMail() 공개 정적인 메소드

public static GetUserMail ( string userName ) : string
userName string
리턴 string

IsAccountLockedOut() 공개 정적인 메소드

public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, System.TimeSpan interval ) : bool
userName string
allowedPasswordAttempts int
interval System.TimeSpan
리턴 bool

IsAccountLockedOut() 공개 정적인 메소드

public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool
userName string
allowedPasswordAttempts int
intervalInSeconds int
리턴 bool

IsConfirmed() 공개 정적인 메소드

public static IsConfirmed ( string userName ) : bool
userName string
리턴 bool

IsCurrentUser() 공개 정적인 메소드

public static IsCurrentUser ( string userName ) : bool
userName string
리턴 bool

IsEmpty() 공개 정적인 메소드

public static IsEmpty ( string value ) : bool
value string
리턴 bool

Login() 공개 정적인 메소드

public static Login ( string userNameOrEmail, string password, bool persistCookie ) : bool
userNameOrEmail string
password string
persistCookie bool
리턴 bool

Logout() 공개 정적인 메소드

public static Logout ( ) : void
리턴 void

RequireAuthenticatedUser() 공개 정적인 메소드

public static RequireAuthenticatedUser ( ) : void
리턴 void

RequireRoles() 공개 정적인 메소드

public static RequireRoles ( ) : void
리턴 void

RequireUser() 공개 정적인 메소드

public static RequireUser ( System.Guid userId ) : void
userId System.Guid
리턴 void

RequireUser() 공개 정적인 메소드

public static RequireUser ( string userName ) : void
userName string
리턴 void

ResetPassword() 공개 정적인 메소드

public static ResetPassword ( string passwordResetToken, string newPassword ) : bool
passwordResetToken string
newPassword string
리턴 bool

SetStatus() 공개 정적인 메소드

public static SetStatus ( this response, HttpStatusCode httpStatusCode ) : void
response this
httpStatusCode HttpStatusCode
리턴 void

SetStatus() 공개 정적인 메소드

public static SetStatus ( this response, int httpStatusCode ) : void
response this
httpStatusCode int
리턴 void

UserExists() 공개 정적인 메소드

public static UserExists ( string userName ) : bool
userName string
리턴 bool