FileServerUser Constructor
Namespace: Rebex.Net.Servers
Assembly: Rebex.FileServer.dll (version 7.0.9083)
FileServerUser(String, String)
Creates a new file server user with the specified password. Virtual file system can be specified later using SetFileSystem(FileSystemProvider, String) method.
Declaration
public FileServerUser(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, String)
Creates a new file server user with the specified password and their virtual filesystem based at the specified path.
Declaration
public FileServerUser(string userName, string password, string virtualRootPath)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
String | virtualRootPath | The placement of the virtual root of the user. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, FileSystemProvider, String)
Creates a new file server user with the specified password and their virtual filesystem based at the specified path.
Declaration
public FileServerUser(string userName, string password, FileSystemProvider provider, string virtualRootPath)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
FileSystemProvider | provider | File system provider. Set this to an instance of class derived from ReadWriteFileSystemProvider or ReadOnlyFileSystemProvider provided by assembly.
|
String | virtualRootPath | The placement of the virtual root of the user. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, ShellType)
Creates a new file server user with the specified password and their virtual filesystem based at the specified path.
Declaration
public FileServerUser(string userName, string password, ShellType shellType)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
ShellType | shellType | Specifies which kind of shell to use for this user. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, String, ShellType)
Creates a new file server user with the specified password and their virtual filesystem based at the specified path.
Declaration
public FileServerUser(string userName, string password, string virtualRootPath, ShellType shellType)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
String | virtualRootPath | The placement of the virtual root of the user. |
ShellType | shellType | Specifies which kind of shell to use for this user. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, FileSystemProvider, String, ShellType)
Creates a new file server user with the specified password and their virtual filesystem based at the specified path.
Declaration
public FileServerUser(string userName, string password, FileSystemProvider provider, string virtualRootPath, ShellType shellType)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
FileSystemProvider | provider | File system provider. Set this to an instance of class derived from ReadWriteFileSystemProvider or ReadOnlyFileSystemProvider provided by assembly.
|
String | virtualRootPath | The placement of the virtual root of the user. |
ShellType | shellType | Specifies which kind of shell to use for this user. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, String, String)
Creates a new file server user with the specified password, their virtual filesystem based at the specified path, and initial path in the virtual filesystem.
Declaration
public FileServerUser(string userName, string password, string virtualRootPath, string initialVirtualPath)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
String | virtualRootPath | The placement of the virtual root of the user. Note: Pass 'null' here if you intend to call SetFileSystem(FileSystemProvider, String) later. |
String | initialVirtualPath | The initial path (i.e. home directory) of the user within the virtual file system. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.
FileServerUser(String, String, FileSystemProvider, String, String)
Creates a new file server user with the specified password, their virtual filesystem based at the specified path, and initial path in the virtual filesystem.
Declaration
public FileServerUser(string userName, string password, FileSystemProvider provider, string virtualRootPath, string initialVirtualPath)
Parameters
Type | Name | Description |
---|---|---|
String | userName | User name. |
String | password | Password. |
FileSystemProvider | provider | File system provider. Set this to an instance of class derived from ReadWriteFileSystemProvider or ReadOnlyFileSystemProvider provided by assembly.
|
String | virtualRootPath | The placement of the virtual root of the user. Note: Pass 'null' here if you intend to call SetFileSystem(FileSystemProvider, String) later. |
String | initialVirtualPath | The initial path (i.e. home directory) of the user within the virtual file system. |
Remarks
The password is one-way transformed to a SHA-256 hash with a random salt value.