語言

SslCertificateTrust 類別

定義

代表用於 SSL/TLS 連線的信任政策。

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

備註

要將信任政策SslStreamCertificateContext與 關聯,將Create(X509Certificate2, X509Certificate2Collection, Boolean, SslCertificateTrust)策略傳遞給trust參數。

對於遠端憑證驗證,則有非或nullCertificateChainPolicyCertificateChainPolicy取代此信任政策。 決定信任的,則取決於TrustModeCustomTrustStore指定的鏈政策與屬性。 如果 sendTrustInHandshake 是 , true伺服器在 TLS 握手時仍會傳送信任清單。

方法

名稱 Description
CreateForX509Collection(X509Certificate2Collection, Boolean)

會產生一個新的 SslCertificateTrust。

CreateForX509Store(X509Store, Boolean)

會產生一個新的 SslCertificateTrust。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於