英語で読む

次の方法で共有


ServerCertificateSelectionCallback 代理人

定義

サーバーの Secure Sockets Layer (SSL) 証明書を選択します。

C#
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string? hostName);
C#
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string hostName);

パラメーター

sender
Object

SslStream オブジェクト。

hostName
String

クライアントによって要求されたホスト名。 クライアントで host_name TLS 拡張機能が使用されていない場合、hostName は空の文字列です。

戻り値

SSL 接続の確立に使用する X509Certificate

注釈

サーバーはこのデリゲートを使用して、サーバー接続証明書を選択します。

このデリゲートは、 クラスによって SslStream 使用されます。 クラスは SslStream 、クライアントとサーバーの間で交換される情報をセキュリティで保護するために使用されます。

拡張メソッド

GetMethodInfo(Delegate)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象

製品 バージョン
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1