C# Класс dlech.SshAgentLib.Ui.QtAgent.SecureEdit

Secure edit control class. Supports storing passwords in an encrypted form in the process memory (Windows only).
Наследование: QtCore.QObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Attach ( QLineEdit aLineEdit, bool aHidePassword ) : void

Associate the current secure edit object with a text box.

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

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

EnableProtection ( bool aEnable ) : void
SetPassword ( byte aNewPassword ) : void

Sets the password.

ToUtf8 ( ) : byte[]

Приватные методы

Метод Описание
GetAsString ( ) : string
RemoveInsert ( int aLeftRemainingCount, int aRigthRemainingCount, string aStringToInsert ) : void
SecureEdit ( ) : System
ShowCurrentPassword ( int nSelStart, int nSelLength ) : void
mPasswordLineEdit_DragEnterEvent ( object sender, QEventArgs e ) : void
mPasswordLineEdit_DragMoveEvent ( object sender, QEventArgs e ) : void
mPasswordLineEdit_DropEvent ( object sender, QEventArgs e ) : void
mPasswordLineEdit_FocusInEvent ( object sender, EventArgs e ) : void
mPasswordLineEdit_TextChanged ( string aText ) : void

Описание методов

Attach() публичный Метод

Associate the current secure edit object with a text box.
public Attach ( QLineEdit aLineEdit, bool aHidePassword ) : void
aLineEdit QLineEdit Text box to link to.
aHidePassword bool Initial protection flag.
Результат void

ContentsEqualTo() публичный Метод

public ContentsEqualTo ( SecureEdit aSecureEdit ) : bool
aSecureEdit 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 aEnable ) : void
aEnable bool
Результат void

SetPassword() публичный Метод

Sets the password.
public SetPassword ( byte aNewPassword ) : void
aNewPassword byte /// A new password (UTF8). ///
Результат void

ToUtf8() публичный Метод

public ToUtf8 ( ) : byte[]
Результат byte[]