Language

SslCertificateTrust Class

Definition

Represents a trust policy for use with SSL/TLS connections.

public ref class SslCertificateTrust sealed
public sealed class SslCertificateTrust
type SslCertificateTrust = class
Public NotInheritable Class SslCertificateTrust
Inheritance
SslCertificateTrust

Remarks

To associate a trust policy with an SslStreamCertificateContext, pass the policy to the trust parameter of Create(X509Certificate2, X509Certificate2Collection, Boolean, SslCertificateTrust).

For remote certificate validation, a non-null CertificateChainPolicy or CertificateChainPolicy supersedes this trust policy. The TrustMode and CustomTrustStore properties of the specified chain policy determine trust instead. The server still sends the trust list during the TLS handshake if sendTrustInHandshake is true.

Methods

Name Description
CreateForX509Collection(X509Certificate2Collection, Boolean)

Creates a new SslCertificateTrust.

CreateForX509Store(X509Store, Boolean)

Creates a new SslCertificateTrust.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to