C# 클래스 Miracle.FileZilla.Api.User

Class representing a FileZilla user
상속: Group
파일 보기 프로젝트 열기: PolarbearDK/Miracle.FileZilla.Api

공개 메소드들

메소드 설명
AssignPassword ( string password, int protocolVersion ) : void

Assign a new password to the user. If protocolVersion requires it, also generate a salt.

Deserialize ( BinaryReader reader, int protocolVersion, int index ) : void

Deserialise FileZilla binary data into object

HashPasswordMd5 ( string password ) : string

Compute a correctly formatted hashed password for use in User.Password.

HashPasswordSha512 ( string password, string salt ) : string

Compute a correctly formatted hashed password for use in User.Password.

Serialize ( BinaryWriter writer, int protocolVersion, int index ) : void

Serialise object into FileZilla binary data

User ( ) : System

Default constructor (sets defaults as in FileZilla server interface)

비공개 메소드들

메소드 설명
GenerateSalt ( ) : string

메소드 상세

AssignPassword() 공개 메소드

Assign a new password to the user. If protocolVersion requires it, also generate a salt.
public AssignPassword ( string password, int protocolVersion ) : void
password string New passwordinary writer to write data to
protocolVersion int Current FileZilla protocol version
리턴 void

Deserialize() 공개 메소드

Deserialise FileZilla binary data into object
public Deserialize ( BinaryReader reader, int protocolVersion, int index ) : void
reader System.IO.BinaryReader Binary reader to read data from
protocolVersion int Current FileZilla protocol version
index int The 0 based index of this item in relation to any parent list
리턴 void

HashPasswordMd5() 공개 정적인 메소드

Compute a correctly formatted hashed password for use in User.Password.
public static HashPasswordMd5 ( string password ) : string
password string
리턴 string

HashPasswordSha512() 공개 정적인 메소드

Compute a correctly formatted hashed password for use in User.Password.
public static HashPasswordSha512 ( string password, string salt ) : string
password string
salt string
리턴 string

Serialize() 공개 메소드

Serialise object into FileZilla binary data
public Serialize ( BinaryWriter writer, int protocolVersion, int index ) : void
writer System.IO.BinaryWriter Binary writer to write data to
protocolVersion int Current FileZilla protocol version
index int The 0 based index of this item in relation to any parent list
리턴 void

User() 공개 메소드

Default constructor (sets defaults as in FileZilla server interface)
public User ( ) : System
리턴 System