C# 클래스 nonintanon.Security.WebSecurity

파일 보기 프로젝트 열기: nonintanon/SimpleGuidMembershipProvider

공개 프로퍼티들

프로퍼티 타입 설명
EnableSimpleMembershipKey string

Private Properties

프로퍼티 타입 설명
CreateAccount string
CreateDefaultSimpleMembershipProvider SimpleMembershipProvider
CreateDefaultSimpleRoleProvider SimpleRoleProvider
CreateUserAndAccount string
GeneratePasswordResetToken string
InitializeMembershipProvider void
InitializeProviders void
InitializeRoleProvider void
IsAccountLockedOutInternal bool
IsUserLoggedOn bool
Login bool
Logout void
PreAppStartInit void
VerifyProvider GuidExtendedMembershipProvider

공개 메소드들

메소드 설명
ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
ConfirmAccount ( string userName, string accountConfirmationToken ) : bool
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
InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
InitializeDatabaseConnection ( string connectionString, string providerName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool
IsConfirmed ( string userName ) : bool
IsCurrentUser ( string userName ) : bool
RequireAuthenticatedUser ( ) : void
RequireRoles ( ) : void
RequireUser ( Guid userId ) : void
RequireUser ( string userName ) : void
ResetPassword ( string passwordResetToken, string newPassword ) : bool
UserExists ( string userName ) : bool

비공개 메소드들

메소드 설명
CreateAccount ( string userName, string password, bool requireConfirmationToken = false ) : string
CreateDefaultSimpleMembershipProvider ( string name, MembershipProvider currentDefault ) : SimpleMembershipProvider
CreateDefaultSimpleRoleProvider ( string name, System.Web.Security.RoleProvider currentDefault ) : SimpleRoleProvider
CreateUserAndAccount ( string userName, string password, object propertyValues = null, bool requireConfirmationToken = false ) : string
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 1440 ) : string
InitializeMembershipProvider ( SimpleMembershipProvider simpleMembership, DatabaseConnectionInfo connect, string userTableName, string userIdColumn, string userNameColumn, bool createTables ) : void
InitializeProviders ( DatabaseConnectionInfo connect, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
InitializeRoleProvider ( SimpleRoleProvider simpleRoles, DatabaseConnectionInfo connect, string userTableName, string userIdColumn, string userNameColumn, bool createTables ) : void
IsAccountLockedOutInternal ( GuidExtendedMembershipProvider provider, string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool
IsUserLoggedOn ( Guid userId ) : bool
Login ( string userName, string password, bool persistCookie = false ) : bool
Logout ( ) : void
PreAppStartInit ( ) : void
VerifyProvider ( ) : GuidExtendedMembershipProvider

메소드 상세

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

ConfirmAccount() 공개 정적인 메소드

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

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

InitializeDatabaseConnection() 공개 정적인 메소드

public static InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
connectionStringName string
userTableName string
userIdColumn string
userNameColumn string
autoCreateTables bool
리턴 void

InitializeDatabaseConnection() 공개 정적인 메소드

public static InitializeDatabaseConnection ( string connectionString, string providerName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
connectionString string
providerName string
userTableName string
userIdColumn string
userNameColumn string
autoCreateTables bool
리턴 void

IsAccountLockedOut() 공개 정적인 메소드

public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool
userName string
allowedPasswordAttempts int
interval 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

RequireAuthenticatedUser() 공개 정적인 메소드

public static RequireAuthenticatedUser ( ) : void
리턴 void

RequireRoles() 공개 정적인 메소드

public static RequireRoles ( ) : void
리턴 void

RequireUser() 공개 정적인 메소드

public static RequireUser ( Guid userId ) : void
userId 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

UserExists() 공개 정적인 메소드

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

프로퍼티 상세

EnableSimpleMembershipKey 공개적으로 정적으로 프로퍼티

public static string EnableSimpleMembershipKey
리턴 string