Table of Contents

Class SslSettings

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents the settings for using SSL.

public class SslSettings : IEquatable<SslSettings>
Inheritance
SslSettings
Implements
Inherited Members

Properties

CheckCertificateRevocation

Gets or sets a value indicating whether to check for certificate revocation.

public bool CheckCertificateRevocation { get; set; }

Property Value

bool

ClientCertificateSelectionCallback

Gets or sets the client certificate selection callback.

public LocalCertificateSelectionCallback ClientCertificateSelectionCallback { get; set; }

Property Value

LocalCertificateSelectionCallback

ClientCertificates

Gets or sets the client certificates.

public IEnumerable<X509Certificate> ClientCertificates { get; set; }

Property Value

IEnumerable<X509Certificate>

EnabledSslProtocols

Gets or sets the enabled SSL protocols.

public SslProtocols EnabledSslProtocols { get; set; }

Property Value

SslProtocols

ServerCertificateValidationCallback

Gets or sets the server certificate validation callback.

public RemoteCertificateValidationCallback ServerCertificateValidationCallback { get; set; }

Property Value

RemoteCertificateValidationCallback

Methods

Clone()

Clones an SslSettings.

public SslSettings Clone()

Returns

SslSettings

The cloned SslSettings.

Equals(SslSettings)

Determines whether the specified SslSettings is equal to this instance.

public bool Equals(SslSettings obj)

Parameters

obj SslSettings

The SslSettings to compare with this instance.

Returns

bool

true if the specified SslSettings is equal to this instance; otherwise, false.

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Freeze()

Freezes the settings.

public SslSettings Freeze()

Returns

SslSettings

The frozen settings.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a string representation of the settings.

public override string ToString()

Returns

string

A string representation of the settings.

Operators

operator ==(SslSettings, SslSettings)

Determines whether two SslSettings instances are equal.

public static bool operator ==(SslSettings lhs, SslSettings rhs)

Parameters

lhs SslSettings

The LHS.

rhs SslSettings

The RHS.

Returns

bool

true if the left hand side is equal to the right hand side; otherwise, false.

operator !=(SslSettings, SslSettings)

Determines whether two SslSettings instances are not equal.

public static bool operator !=(SslSettings lhs, SslSettings rhs)

Parameters

lhs SslSettings

The LHS.

rhs SslSettings

The RHS.

Returns

bool

true if the left hand side is not equal to the right hand side; otherwise, false.