C# 클래스 dlech.SshAgentLib.WinForms.SecureEdit

Secure edit control class. Supports storing passwords in an encrypted form in the process memory.
파일 보기 프로젝트 열기: dlech/SshAgentLib 1 사용 예제들

공개 메소드들

메소드 설명
Attach ( TextBox tbPasswordBox, EventHandler evTextChanged, bool bHidePassword ) : void

Associate the current secure edit object with a text box.

ContentsEqualTo ( SecureEdit secOther ) : bool
Detach ( ) : void

Remove the current association. You should call this before the text box is destroyed.

EnableProtection ( bool bEnable ) : void
SetPassword ( byte pbUtf8 ) : void
ToUtf8 ( ) : byte[]

비공개 메소드들

메소드 설명
GetAsString ( ) : string
OnDragCheck ( object sender, DragEventArgs e ) : void
OnDragDrop ( object sender, DragEventArgs e ) : void
OnGotFocus ( object sender, EventArgs e ) : void
OnPasswordTextChanged ( object sender, EventArgs e ) : void
RemoveInsert ( int nLeftRem, int nRightRem, string strInsert ) : void
SecureEdit ( ) : System
ShowCurrentPassword ( int nSelStart, int nSelLength ) : void

메소드 상세

Attach() 공개 메소드

Associate the current secure edit object with a text box.
public Attach ( TextBox tbPasswordBox, EventHandler evTextChanged, bool bHidePassword ) : void
tbPasswordBox System.Windows.Forms.TextBox Text box to link to.
evTextChanged EventHandler
bHidePassword bool Initial protection flag.
리턴 void

ContentsEqualTo() 공개 메소드

public ContentsEqualTo ( SecureEdit secOther ) : bool
secOther SecureEdit
리턴 bool

Detach() 공개 메소드

Remove the current association. You should call this before the text box is destroyed.
public Detach ( ) : void
리턴 void

EnableProtection() 공개 메소드

public EnableProtection ( bool bEnable ) : void
bEnable bool
리턴 void

SetPassword() 공개 메소드

public SetPassword ( byte pbUtf8 ) : void
pbUtf8 byte
리턴 void

ToUtf8() 공개 메소드

public ToUtf8 ( ) : byte[]
리턴 byte[]