Class SslStreamFactory
Standard SSL stream factory. Can be used with or without client-side certificates.
public sealed class SslStreamFactory : ISslStreamFactory
- Inheritance
-
SslStreamFactory
- Implements
- Inherited Members
Properties
SslClientAuthenticationOptions
Gets or sets client authentication options.
public SslClientAuthenticationOptions? SslClientAuthenticationOptions { get; set; }
Property Value
Methods
CreateAsync(Stream, string, CancellationToken)
Creates the SSL stream.
public Task<SslStream?> CreateAsync(Stream stream, string targetHost, CancellationToken cancellationToken)
Parameters
stream
StreamThe underlying raw stream.
targetHost
stringTarget host.
cancellationToken
CancellationTokenCancellation token.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.