Interface IFtpSecureConnectionAdapter
Connection adapter for a secure connection.
Inherited Members
Namespace: FubarDev.FtpServer.ConnectionHandlers
Assembly: FubarDev.FtpServer.dll
Syntax
public interface IFtpSecureConnectionAdapter : IFtpConnectionAdapter, IFtpService
Methods
| Improve this Doc View SourceEnableSslStreamAsync(X509Certificate2, CancellationToken)
Enables encryption with an SslStream.
Declaration
Task EnableSslStreamAsync(X509Certificate2 certificate, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| X509Certificate2 | certificate | The server certificate (with private key). |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | The task. |
ResetAsync(CancellationToken)
Resets the connection to non-encrypted communication.
Declaration
Task ResetAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | The task. |