Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 enumerationEncryptionPolicyThe EncryptionPolicy to use.
Public enumerationProtectionLevelIndicates the security services requested for an authenticated stream.
Public enumerationSslPolicyErrorsEnumerates Secure Socket Layer (SSL) policy errors.

Community Additions

© 2018 Microsoft