This documentation is archived and is not being maintained.

System.Net.Security Namespace

The System.Net.Security namespace provides network streams for secure communications between hosts.

Public classAuthenticatedStreamProvides methods for passing credentials across a stream and requesting or performing authentication for client-server applications.
Public classNegotiateStreamProvides a stream that uses the Negotiate security protocol to authenticate the client, and optionally the server, in client-server communication.
Public classSslStreamProvides a stream used for client-server communication that uses the Secure Socket Layer (SSL) security protocol to authenticate the server and optionally the client.

Public delegateLocalCertificateSelectionCallbackSelects the local Secure Sockets Layer (SSL) certificate used for authentication.
Public delegateRemoteCertificateValidationCallbackVerifies the remote Secure Sockets Layer (SSL) certificate used for authentication.

Public enumerationAuthenticationLevelSpecifies client requirements for authentication and impersonation when using the WebRequest class and derived classes to request a resource.
Public enumerationProtectionLevelIndicates the security services requested for an authenticated stream.
Public enumerationSslPolicyErrorsEnumerates Secure Socket Layer (SSL) policy errors.