C# Class nonintanon.Security.WebSecurity

Afficher le fichier Open project: nonintanon/SimpleGuidMembershipProvider

Méthodes publiques

Свойство Type Description
EnableSimpleMembershipKey string

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ChangePassword() public static méthode

public static ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
userName string
currentPassword string
newPassword string
Résultat bool

ConfirmAccount() public static méthode

public static ConfirmAccount ( string accountConfirmationToken ) : bool
accountConfirmationToken string
Résultat bool

ConfirmAccount() public static méthode

public static ConfirmAccount ( string userName, string accountConfirmationToken ) : bool
userName string
accountConfirmationToken string
Résultat bool

GetCreateDate() public static méthode

public static GetCreateDate ( string userName ) : System.DateTime
userName string
Résultat System.DateTime

GetLastPasswordFailureDate() public static méthode

public static GetLastPasswordFailureDate ( string userName ) : System.DateTime
userName string
Résultat System.DateTime

GetPasswordChangedDate() public static méthode

public static GetPasswordChangedDate ( string userName ) : System.DateTime
userName string
Résultat System.DateTime

GetPasswordFailuresSinceLastSuccess() public static méthode

public static GetPasswordFailuresSinceLastSuccess ( string userName ) : int
userName string
Résultat int

GetUserId() public static méthode

public static GetUserId ( string userName ) : System.Guid
userName string
Résultat System.Guid

GetUserIdFromPasswordResetToken() public static méthode

public static GetUserIdFromPasswordResetToken ( string token ) : System.Guid
token string
Résultat System.Guid

InitializeDatabaseConnection() public static méthode

public static InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
connectionStringName string
userTableName string
userIdColumn string
userNameColumn string
autoCreateTables bool
Résultat void

InitializeDatabaseConnection() public static méthode

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
Résultat void

IsAccountLockedOut() public static méthode

public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool
userName string
allowedPasswordAttempts int
interval TimeSpan
Résultat bool

IsAccountLockedOut() public static méthode

public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool
userName string
allowedPasswordAttempts int
intervalInSeconds int
Résultat bool

IsConfirmed() public static méthode

public static IsConfirmed ( string userName ) : bool
userName string
Résultat bool

IsCurrentUser() public static méthode

public static IsCurrentUser ( string userName ) : bool
userName string
Résultat bool

RequireAuthenticatedUser() public static méthode

public static RequireAuthenticatedUser ( ) : void
Résultat void

RequireRoles() public static méthode

public static RequireRoles ( ) : void
Résultat void

RequireUser() public static méthode

public static RequireUser ( Guid userId ) : void
userId Guid
Résultat void

RequireUser() public static méthode

public static RequireUser ( string userName ) : void
userName string
Résultat void

ResetPassword() public static méthode

public static ResetPassword ( string passwordResetToken, string newPassword ) : bool
passwordResetToken string
newPassword string
Résultat bool

UserExists() public static méthode

public static UserExists ( string userName ) : bool
userName string
Résultat bool

Property Details

EnableSimpleMembershipKey public_oe static_oe property

public static string EnableSimpleMembershipKey
Résultat string