C# 클래스 Filezilla, FileZilla.NET

Summary description for Filezilla
파일 보기 프로젝트 열기: sancsoft/FileZilla.NET 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
config XmlDocument

공개 메소드들

메소드 설명
AddUsersToList ( List &userList ) : int

Add the users in the file to a list of users

AllowDirCreate ( string username, string foldername ) : bool
AllowDirDelete ( string username, string foldername ) : bool
AllowDirList ( string username, string foldername ) : bool
AllowDirSubdirs ( string username, string foldername ) : bool
AllowFileDelete ( string username, string foldername ) : bool
AllowFileRead ( string username, string foldername ) : bool
AllowFileWrite ( string username, string foldername ) : bool
AssignUserPassword ( string username, string password ) : bool

Assign the supplied password to the supplied user account

Authenticate ( string username, string password ) : bool

Attempt to authenticate using the provided account and password

AuthenticateAdministration ( string password ) : bool

Authenticate as the server administrator - for some reason, this isn't encrypted

AutoCreate ( string username, string foldername ) : bool
CreateUser ( string username, string password, bool enabled, bool fileRead, bool fileWrite, bool fileDelete, bool fileAppend, bool dirCreate, bool dirDelete, bool dirList, bool dirSubdirs, bool autoCreate ) : bool

Create a new user account

Filezilla ( string configurationFile ) : System
ForceServerConfigurationLoad ( ) : bool

Force the server to reload the configuration

GetMd5Sum ( string str ) : string

Calculated the md5 encrypted version of a string

GetUser ( string userName ) : FilezillaUser,

Retrieve a user object by user name. This will throw if the user cannot be found

HomeDirectory ( string username ) : string

Retrieve this user's home directory from the configuration. Throws an exception if the user is not defined

IsHome ( string username, string foldername ) : bool
NormalizeFolderName ( string rawFolder ) : string

Normalize the definition of a folder to something we can work with

UserExists ( string userName ) : bool

Check to see if a valid user exists

WriteConfiguration ( string filename ) : void

Write the XML back to the configuration file

보호된 메소드들

메소드 설명
AccountNotification ( string action, string username, string password ) : void

Notify the system administration email address of account information

CheckPermission ( string username, string foldername, string permission ) : bool

Check an permission flag

메소드 상세

AccountNotification() 보호된 메소드

Notify the system administration email address of account information
protected AccountNotification ( string action, string username, string password ) : void
action string action description
username string account
password string password (unencrypted)
리턴 void

AddUsersToList() 공개 메소드

Add the users in the file to a list of users
public AddUsersToList ( List &userList ) : int
userList List list to receive users
리턴 int

AllowDirCreate() 공개 메소드

public AllowDirCreate ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AllowDirDelete() 공개 메소드

public AllowDirDelete ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AllowDirList() 공개 메소드

public AllowDirList ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AllowDirSubdirs() 공개 메소드

public AllowDirSubdirs ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AllowFileDelete() 공개 메소드

public AllowFileDelete ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AllowFileRead() 공개 메소드

public AllowFileRead ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AllowFileWrite() 공개 메소드

public AllowFileWrite ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

AssignUserPassword() 공개 메소드

Assign the supplied password to the supplied user account
public AssignUserPassword ( string username, string password ) : bool
username string user account
password string new password
리턴 bool

Authenticate() 공개 메소드

Attempt to authenticate using the provided account and password
public Authenticate ( string username, string password ) : bool
username string user name for login
password string clear text password
리턴 bool

AuthenticateAdministration() 공개 메소드

Authenticate as the server administrator - for some reason, this isn't encrypted
public AuthenticateAdministration ( string password ) : bool
password string
리턴 bool

AutoCreate() 공개 메소드

public AutoCreate ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

CheckPermission() 보호된 메소드

Check an permission flag
protected CheckPermission ( string username, string foldername, string permission ) : bool
username string account
foldername string dir for permissions
permission string specific permission
리턴 bool

CreateUser() 공개 메소드

Create a new user account
public CreateUser ( string username, string password, bool enabled, bool fileRead, bool fileWrite, bool fileDelete, bool fileAppend, bool dirCreate, bool dirDelete, bool dirList, bool dirSubdirs, bool autoCreate ) : bool
username string
password string
enabled bool
fileRead bool
fileWrite bool
fileDelete bool
fileAppend bool
dirCreate bool
dirDelete bool
dirList bool
dirSubdirs bool
autoCreate bool
리턴 bool

Filezilla() 공개 메소드

public Filezilla ( string configurationFile ) : System
configurationFile string
리턴 System

ForceServerConfigurationLoad() 공개 메소드

Force the server to reload the configuration
public ForceServerConfigurationLoad ( ) : bool
리턴 bool

GetMd5Sum() 정적인 공개 메소드

Calculated the md5 encrypted version of a string
static public GetMd5Sum ( string str ) : string
str string string to encrypt
리턴 string

GetUser() 공개 메소드

Retrieve a user object by user name. This will throw if the user cannot be found
public GetUser ( string userName ) : FilezillaUser,
userName string target user
리턴 FilezillaUser,

HomeDirectory() 공개 메소드

Retrieve this user's home directory from the configuration. Throws an exception if the user is not defined
public HomeDirectory ( string username ) : string
username string account
리턴 string

IsHome() 공개 메소드

public IsHome ( string username, string foldername ) : bool
username string
foldername string
리턴 bool

NormalizeFolderName() 공개 메소드

Normalize the definition of a folder to something we can work with
public NormalizeFolderName ( string rawFolder ) : string
rawFolder string raw folder definition
리턴 string

UserExists() 공개 메소드

Check to see if a valid user exists
public UserExists ( string userName ) : bool
userName string
리턴 bool

WriteConfiguration() 공개 메소드

Write the XML back to the configuration file
public WriteConfiguration ( string filename ) : void
filename string destination
리턴 void

프로퍼티 상세

config 보호되어 있는 프로퍼티

protected XmlDocument config
리턴 XmlDocument