Show / Hide Table of Contents

    Interface ISslStreamWrapperFactory

    Interface to wrap an unencrypted stream in an SslStream.

    Namespace: FubarDev.FtpServer.Authentication
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public interface ISslStreamWrapperFactory

    Methods

    | Improve this Doc View Source

    CloseStreamAsync(Stream, CancellationToken)

    Close the SslStream gracefully (if possible).

    Declaration
    Task CloseStreamAsync(Stream sslStream, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Stream sslStream

    The SslStream to close.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    The task.

    | Improve this Doc View Source

    WrapStreamAsync(Stream, Boolean, X509Certificate, CancellationToken)

    Wraps the unencrypted stream in an SslStream.

    Declaration
    Task<Stream> WrapStreamAsync(Stream unencryptedStream, bool keepOpen, X509Certificate certificate, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Stream unencryptedStream

    The unencrypted stream.

    Boolean keepOpen

    Keep the unencryptedStream open when the SslStream gets disposed.

    X509Certificate certificate

    The certificate to be used to authenticate as server.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<Stream>

    The SslStream that wraps the unencryptedStream.

    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.