mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +08:00
27 lines
963 B
C#
27 lines
963 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Net.Security;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace MQTTnet;
|
|
|
|
public sealed class MqttClientCertificateValidationEventArgs : EventArgs
|
|
{
|
|
public MqttClientCertificateValidationEventArgs(X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors, IMqttClientChannelOptions clientOptions)
|
|
{
|
|
Certificate = certificate;
|
|
Chain = chain;
|
|
SslPolicyErrors = sslPolicyErrors;
|
|
ClientOptions = clientOptions ?? throw new ArgumentNullException(nameof(clientOptions));
|
|
}
|
|
|
|
public X509Certificate Certificate { get; }
|
|
|
|
public X509Chain Chain { get; }
|
|
|
|
public IMqttClientChannelOptions ClientOptions { get; }
|
|
|
|
public SslPolicyErrors SslPolicyErrors { get; }
|
|
} |