System.Net.Security Namespace

System.Net.Security 命名空间提供了网络流以便在主机间安全地通信。 The System.Net.Security namespace provides network streams for secure communications between hosts.

AuthenticatedStream

提供通过流传递凭据的方法,以及为客户端/服务器应用程序请求或执行身份验证的方法。Provides methods for passing credentials across a stream and requesting or performing authentication for client-server applications.

CipherSuitesPolicy

指定允许的密码套件。Specifies allowed cipher suites.

NegotiateStream

提供一个使用协商安全协议的流,以便对客户端-服务器通信中的客户端及服务器(可选)进行身份验证。Provides a stream that uses the Negotiate security protocol to authenticate the client, and optionally the server, in client-server communication.

SslClientAuthenticationOptions
SslServerAuthenticationOptions
SslStream

提供一个用于客户端-服务器通信的流,该流使用安全套接字层 (SSL) 安全协议对服务器和(可选)客户端进行身份验证。Provides a stream used for client-server communication that uses the Secure Socket Layer (SSL) security protocol to authenticate the server and optionally the client.

结构

SslApplicationProtocol

枚举

AuthenticationLevel

指定使用 WebRequest 类和派生类请求资源时,客户端对身份验证和模拟的要求。Specifies client requirements for authentication and impersonation when using the WebRequest class and derived classes to request a resource.

EncryptionPolicy

要使用的 EncryptionPolicy。The EncryptionPolicy to use.

ProtectionLevel

指示是否为已经过身份验证的流请求安全服务。Indicates the security services requested for an authenticated stream.

SslPolicyErrors

枚举安全套接字层 (SSL) 策略错误。Enumerates Secure Socket Layer (SSL) policy errors.

TlsCipherSuite

表示 TLS(以前称为 SSL)协议的密码套件值。Represents cipher suite values for the TLS (formerly SSL) protocol.

委托

LocalCertificateSelectionCallback

选择用于身份验证的本地安全套接字层 (SSL) 证书。Selects the local Secure Sockets Layer (SSL) certificate used for authentication.

RemoteCertificateValidationCallback

验证用于身份验证的远程安全套接字层 (SSL) 证书。Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.

ServerCertificateSelectionCallback