Specifies the security protocols that the FtpClient class supports.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
The FtpClient class uses the SecurityProtocols enumeration to specify one or more security protocols to be used when establishing a connection with a remote host. Multiple protocols may be specified if necessary and the actual protocol used will be negotiated with the remote host. It is recommended that most applications use protocolDefault when creating a secure connection.
| Member Name | Description | Value |
|---|---|---|
| protocolNone | No security protocol will be used, a secure connection will not be established. | 0 |
| protocolSSL2 | The SSL 2.0 protocol has been selected. Note that this protocol has been deprecated and is no longer widely used. It is not recommended that this protocol be used when establishing secure connections. | 1 |
| protocolSSL3 | The SSL 3.0 protocol has been selected. This version of the protocol and the TLS protocol are the most commonly used security protocols. In most cases, this protocol is only selected if TLS is not supported by the remote host. | 2 |
| protocolTLS1 | The TLS 1.0, 1.1 or 1.2 protocol has been selected. The latest version of the protocol that is supported by both the client and server will be automatically selected. This protocol and SSL 3.0 are the most commonly used security protocols. | 8 |
| protocolSSH1 | The Secure Shell 1.0 protocol has been selected. This version of the protocol has been deprecated and is no longer widely used. It is not recommended that this version of the protocol be used to establish a connection. | 16 |
| protocolSSH2 | The Secure Shell 2.0 protocol has been selected. This is the most commonly used version of the protocol. It is recommended that this version of the protocol be used unless the server explicitly requires the client to use an earlier version. | 32 |
| protocolSSL | Any version of the Secure Sockets Layer (SSL) protocol should be used. The actual protocol version used will be negotiated with the remote host. | 3 |
| protocolTLS | Any version of the the Transport Layer Security (TLS) protocol should be used. The actual protocol version used will be negotiated with the remote host. | 8 |
| protocolSSH | Any version of the the Secure Shell (SSH) protocol should be used. The actual protocol version used will be negotiated with the remote host. | 48 |
| protocolDefault | The default selection of security protocols will be used when establishing a connection. The TLS 1.2, 1.1, 1.0 and SSL 3.0 protocols will be negotiated with the host, in that order of preference. This option will always request the latest version of the available security protocols and is the recommended value. | 10 |
| protocolUnknown | An unknown or unsupported security protocol has been specified. This value indicates an error condition. | 4096 |
Namespace: SocketTools
Assembly: SocketTools.FtpClient (in SocketTools.FtpClient.dll)