Class SslSettings
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
ClientCertificateSelectionCallback
Gets or sets the client certificate selection callback.
public LocalCertificateSelectionCallback ClientCertificateSelectionCallback { get; set; }
Property Value
ClientCertificates
Gets or sets the client certificates.
public IEnumerable<X509Certificate> ClientCertificates { get; set; }
Property Value
EnabledSslProtocols
Gets or sets the enabled SSL protocols.
public SslProtocols EnabledSslProtocols { get; set; }
Property Value
ServerCertificateValidationCallback
Gets or sets the server certificate validation callback.
public RemoteCertificateValidationCallback ServerCertificateValidationCallback { get; set; }
Property Value
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
SslSettingsThe 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
Returns
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
SslSettingsThe LHS.
rhs
SslSettingsThe 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
SslSettingsThe LHS.
rhs
SslSettingsThe RHS.
Returns
- bool
true
if the left hand side is not equal to the right hand side; otherwise,false
.