C# 클래스 Rock.Security.Authentication.Database

상속: AuthenticationComponent
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
Authenticate ( UserLogin user, string password ) : System.Boolean

Authenticates the specified user name.

Authenticate ( HttpRequest request, string &userName, string &returnUrl ) : bool

Authenticates the user based on a request from a third-party provider. Will set the username and returnUrl values.

ChangePassword ( UserLogin user, string oldPassword, string newPassword, string &warningMessage ) : bool

Changes the password.

EncodePassword ( UserLogin user, string password ) : String

Encodes the password.

GenerateLoginUrl ( HttpRequest request ) : Uri

Generates the login URL.

GenerateUsername ( string firstName, string lastName, int tryCount ) : string

Generates the username.

ImageUrl ( ) : string

Gets the URL of an image that should be displayed.

IsReturningFromAuthentication ( HttpRequest request ) : bool

Tests the Http Request to determine if authentication should be tested by this authentication provider.

SetPassword ( UserLogin user, string password ) : void

Sets the password.

비공개 메소드들

메소드 설명
AuthenticateBcrypt ( UserLogin user, string password ) : bool
AuthenticateSha1 ( UserLogin user, string password ) : bool
Database ( ) : System

Initializes the Database class.

EncodeBcrypt ( string password ) : string
EncodePassword ( UserLogin user, string password, byte encryptionKey ) : string

Encodes the password.

EncodeSha1 ( System.Guid userGuid, string password, byte encryptionKey ) : string
SetNewPassword ( UserLogin user, string rawPassword ) : UserLogin

메소드 상세

Authenticate() 공개 메소드

Authenticates the specified user name.
public Authenticate ( UserLogin user, string password ) : System.Boolean
user UserLogin The user.
password string The password.
리턴 System.Boolean

Authenticate() 공개 메소드

Authenticates the user based on a request from a third-party provider. Will set the username and returnUrl values.
public Authenticate ( HttpRequest request, string &userName, string &returnUrl ) : bool
request System.Web.HttpRequest The request.
userName string Name of the user.
returnUrl string The return URL.
리턴 bool

ChangePassword() 공개 메소드

Changes the password.
Cannot change password on external service type
public ChangePassword ( UserLogin user, string oldPassword, string newPassword, string &warningMessage ) : bool
user UserLogin The user.
oldPassword string The old password.
newPassword string The new password.
warningMessage string The warning message.
리턴 bool

EncodePassword() 공개 메소드

Encodes the password.
public EncodePassword ( UserLogin user, string password ) : String
user UserLogin The user.
password string
리턴 String

GenerateLoginUrl() 공개 메소드

Generates the login URL.
public GenerateLoginUrl ( HttpRequest request ) : Uri
request System.Web.HttpRequest The request.
리턴 System.Uri

GenerateUsername() 공개 정적인 메소드

Generates the username.
public static GenerateUsername ( string firstName, string lastName, int tryCount ) : string
firstName string The first name.
lastName string The last name.
tryCount int The try count.
리턴 string

ImageUrl() 공개 메소드

Gets the URL of an image that should be displayed.
public ImageUrl ( ) : string
리턴 string

IsReturningFromAuthentication() 공개 메소드

Tests the Http Request to determine if authentication should be tested by this authentication provider.
public IsReturningFromAuthentication ( HttpRequest request ) : bool
request System.Web.HttpRequest The request.
리턴 bool

SetPassword() 공개 메소드

Sets the password.
public SetPassword ( UserLogin user, string password ) : void
user UserLogin The user.
password string The password.
리턴 void