SslStreamProvider Class

Represents a provider for creating and managing SSL/TLS streams. This class is an abstraction that allows for different implementations of SSL/TLS stream creation, typically abstracting underlying operating system or cryptographic library calls.

Syntax

public abstract class SslStreamProvider

Inheritance

Remarks

The SslStreamProvider class is a low-level component designed to be used by higher-level classes like SslStream. It defines the contract for creating secure streams but does not provide a concrete implementation itself. Concrete providers are responsible for implementing the underlying cryptography and protocol handling.

This class is particularly useful in scenarios where you need to customize or plug in different SSL/TLS implementations, such as supporting specific cryptographic suites, interacting with hardware security modules (HSMs), or working with custom security protocols.

Developers typically do not interact with SslStreamProvider directly. Instead, they use classes like SslStream, which internally utilize an appropriate provider to establish secure communication channels.

Methods

Name Description
CreateStream Abstract method. Creates a new SslStream instance using the provider's configuration.
Dispose Releases the unmanaged resources used by the SslStreamProvider and optionally releases the managed resources.

Properties

Name Description
SupportedProtocols Gets the SSL/TLS protocols supported by this provider.
ClientCertificates Gets or sets the client certificates to be used for authentication.
CertificateValidationCallback Gets or sets a callback delegate that is invoked to validate the server's certificate.

Constructors

This is an abstract class and cannot be instantiated directly.

Requirements

Namespace

System.Net.Security

Assembly

System.Net.Security.dll