C# 클래스 Subtext.Web.Controls.CaptchaBase

상속: System.Web.UI.WebControls.BaseValidator
파일 보기 프로젝트 열기: ayende/Subtext

Private Properties

프로퍼티 타입 설명
InitializeEncryptionAlgorithm System.Security.Cryptography.SymmetricAlgorithm
ValidateCaptcha bool

공개 메소드들

메소드 설명
DecryptString ( string encryptedEncodedText ) : string

Decrypts the base64 encrypted string and returns the cleartext.

EncryptString ( string clearText ) : string

Encrypts the string and returns a base64 encoded encrypted string.

보호된 메소드들

메소드 설명
ControlPropertiesValid ( ) : bool

Checks the properties of the control for valid values.

EncryptAnswer ( string answer ) : string

Encrypts the answer along with the current datetime.

EvaluateIsValid ( ) : bool

When overridden in a derived class, this method contains the code to determine whether the value in the input control is valid.

GetClientSpecifiedAnswer ( ) : string
GetEncryptedAnswerFromForm ( ) : AnswerAndDate

Gets the encrypted answer from form.

비공개 메소드들

메소드 설명
InitializeEncryptionAlgorithm ( ) : SymmetricAlgorithm
ValidateCaptcha ( ) : bool

메소드 상세

ControlPropertiesValid() 보호된 메소드

Checks the properties of the control for valid values.
protected ControlPropertiesValid ( ) : bool
리턴 bool

DecryptString() 공개 정적인 메소드

Decrypts the base64 encrypted string and returns the cleartext.
Thrown the string to be decrypted /// was encrypted using a different encryptor (for example, if we recompile and /// receive an old string).
public static DecryptString ( string encryptedEncodedText ) : string
encryptedEncodedText string The clear text.
리턴 string

EncryptAnswer() 보호된 메소드

Encrypts the answer along with the current datetime.
protected EncryptAnswer ( string answer ) : string
answer string The answer.
리턴 string

EncryptString() 공개 정적인 메소드

Encrypts the string and returns a base64 encoded encrypted string.
public static EncryptString ( string clearText ) : string
clearText string The clear text.
리턴 string

EvaluateIsValid() 보호된 메소드

When overridden in a derived class, this method contains the code to determine whether the value in the input control is valid.
protected EvaluateIsValid ( ) : bool
리턴 bool

GetClientSpecifiedAnswer() 보호된 메소드

protected GetClientSpecifiedAnswer ( ) : string
리턴 string

GetEncryptedAnswerFromForm() 보호된 메소드

Gets the encrypted answer from form.
Thrown when the user takes too long to submit a captcha answer.
protected GetEncryptedAnswerFromForm ( ) : AnswerAndDate
리턴 AnswerAndDate