Class MqttClientTlsConfiguration
- Namespace
- Silverback.Messaging.Configuration.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
The TLS configuration.
public record MqttClientTlsConfiguration : IValidatableSettings, IEquatable<MqttClientTlsConfiguration>
- Inheritance
-
MqttClientTlsConfiguration
- Implements
- Inherited Members
Constructors
MqttClientTlsConfiguration()
public MqttClientTlsConfiguration()
MqttClientTlsConfiguration(MqttClientTlsConfiguration)
protected MqttClientTlsConfiguration(MqttClientTlsConfiguration original)
Parameters
originalMqttClientTlsConfiguration
Properties
AllowRenegotiation
Gets a value indicating whether renegotiation is allowed.
public bool AllowRenegotiation { get; init; }
Property Value
AllowUntrustedCertificates
Gets a value indicating whether the client should accept untrusted certificates.
public bool AllowUntrustedCertificates { get; init; }
Property Value
ApplicationProtocols
Gets the TLS protocols to use.
public IValueReadOnlyCollection<SslApplicationProtocol>? ApplicationProtocols { get; init; }
Property Value
CertificateSelectionHandler
Gets the function to be used to select the client certificate.
public Func<MqttClientCertificateSelectionEventArgs, X509Certificate>? CertificateSelectionHandler { get; init; }
Property Value
- Func<MqttClientCertificateSelectionEventArgs, X509Certificate>
CertificateValidationHandler
Gets the function to be used to validate the remote certificate.
public Func<MqttClientCertificateValidationEventArgs, bool>? CertificateValidationHandler { get; init; }
Property Value
CipherSuitesPolicy
Gets the CipherSuitesPolicy.
public CipherSuitesPolicy? CipherSuitesPolicy { get; init; }
Property Value
ClientCertificatesProvider
Gets the provider to be used to get the client certificates.
public IMqttClientCertificatesProvider? ClientCertificatesProvider { get; init; }
Property Value
- IMqttClientCertificatesProvider
EncryptionPolicy
Gets the EncryptionPolicy.
public EncryptionPolicy EncryptionPolicy { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IgnoreCertificateChainErrors
Gets a value indicating whether the client should ignore the certificate chain errors.
public bool IgnoreCertificateChainErrors { get; init; }
Property Value
IgnoreCertificateRevocationErrors
Gets a value indicating whether the client should ignore the certificate revocation errors.
public bool IgnoreCertificateRevocationErrors { get; init; }
Property Value
RevocationMode
Gets the X509RevocationMode.
public X509RevocationMode RevocationMode { get; init; }
Property Value
SslProtocol
Gets the protocol to be used. The default is TLS 1.3 or TLS 1.2.
public SslProtocols SslProtocol { get; init; }
Property Value
TargetHost
Gets the target host. If the value is null or empty the same host as the TCP socket host will be used.
public string? TargetHost { get; init; }
Property Value
TrustChain
Gets the X509Certificate2Collection containing the trust chain.
public X509Certificate2Collection? TrustChain { get; init; }
Property Value
UseTls
Gets a value indicating whether the client should use TLS.
public bool UseTls { get; init; }
Property Value
Methods
Equals(MqttClientTlsConfiguration?)
public virtual bool Equals(MqttClientTlsConfiguration? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
public void Validate()
Operators
operator ==(MqttClientTlsConfiguration?, MqttClientTlsConfiguration?)
public static bool operator ==(MqttClientTlsConfiguration? left, MqttClientTlsConfiguration? right)
Parameters
Returns
operator !=(MqttClientTlsConfiguration?, MqttClientTlsConfiguration?)
public static bool operator !=(MqttClientTlsConfiguration? left, MqttClientTlsConfiguration? right)