语言

SslCertificateTrust 类

定义

表示用于 SSL/TLS 连接的信任策略。

public ref class SslCertificateTrust sealed
public sealed class SslCertificateTrust
type SslCertificateTrust = class
Public NotInheritable Class SslCertificateTrust
继承
SslCertificateTrust

注解

若要将信任策略与 an SslStreamCertificateContext相关联,请将策略传递给 trust 参数 Create(X509Certificate2, X509Certificate2Collection, Boolean, SslCertificateTrust)。

对于远程证书验证,非nullCertificateChainPolicy 或 CertificateChainPolicy 取代此信任策略。 TrustMode CustomTrustStore指定的链策略的属性决定信任。 服务器仍会在 TLS 握手期间发送信任列表(如果 sendTrustInHandshake 为 true)。

方法

名称 说明
CreateForX509Collection(X509Certificate2Collection, Boolean)

创建新的 SslCertificateTrust。

CreateForX509Store(X509Store, Boolean)

创建新的 SslCertificateTrust。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于