System.Security.Authentication 命名空间

Authentication 命名空间提供一组描述连接安全性的枚举。 The Authentication namespace provides a set of enumerations that describe the security of a connection. 这些枚举包括 CipherAlgorithmTypeExchangeAlgorithmTypeHashAlgorithmTypeSslProtocols These enumerations include CipherAlgorithmType, ExchangeAlgorithmType, HashAlgorithmType, and SslProtocols.

AuthenticationException

当身份验证流的身份验证失败时引发的异常。The exception that is thrown when authentication fails for an authentication stream.

InvalidCredentialException

当身份验证流的身份验证失败并且不能重试时引发的异常。The exception that is thrown when authentication fails for an authentication stream and cannot be retried.

枚举

CipherAlgorithmType

SslStream 类定义可能的密码算法。Defines the possible cipher algorithms for the SslStream class.

ExchangeAlgorithmType

指定用于创建客户端和服务器共享密钥的算法。Specifies the algorithm used to create keys shared by the client and server.

HashAlgorithmType

指定用于生成消息身份验证代码 (MAC) 的算法。Specifies the algorithm used for generating message authentication codes (MACs).

SslProtocols

定义 SslProtocols 的可能版本。Defines the possible versions of SslProtocols.