ServerCertificateSelectionCallback 대리자

정의

서버 SSL(Secure Sockets Layer) 인증서를 선택합니다.

public delegate System::Security::Cryptography::X509Certificates::X509Certificate ^ ServerCertificateSelectionCallback(System::Object ^ sender, System::String ^ hostName);
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string? hostName);
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string hostName);
type ServerCertificateSelectionCallback = delegate of obj * string -> X509Certificate
Public Delegate Function ServerCertificateSelectionCallback(sender As Object, hostName As String) As X509Certificate 

매개 변수

sender
Object

SslStream 개체입니다.

hostName
String

클라이언트에서 요청하는 호스트 이름입니다. 클라이언트에서 host_name TLS 확장을 사용하지 않는 경우 hostName은 빈 문자열입니다.

반환 값

SSL 연결을 설정하는 데 사용되는 X509Certificate입니다.

설명

서버는 이 대리자를 사용하여 서버 연결 인증서를 선택합니다.

이 대리자는 클래스에서 SslStream 사용됩니다. 클래스는 SslStream 클라이언트와 서버 간에 교환되는 정보를 보호하는 데 사용됩니다.

확장 메서드

GetMethodInfo(Delegate)

지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다.

적용 대상