ServerCertificateSelectionCallback Delegado

Definición

Selecciona el certificado de Capa de sockets seguros del servidor (SSL).Selects the server Secure Sockets Layer (SSL) certificate.

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 

Parámetros

sender
Object

Un objeto SslStream.A SslStream object.

hostName
String

Nombre de host que ha solicitado el cliente.The host name requested by the client. Si el cliente no usa la extensión TLS host_name, hostName es una cadena vacía.If the client doesn't use the host_name TLS extension, the hostName is an empty string.

Valor devuelto

X509Certificate

X509Certificate utilizado para establecer una conexión SSL.An X509Certificate used for establishing an SSL connection.

Comentarios

El servidor utiliza este delegado para seleccionar un certificado de conexión de servidor.The server uses this delegate to select a server connection certificate.

La clase utiliza este delegado SslStream .This delegate is used by the SslStream class. La SslStream clase se usa para ayudar a proteger la información intercambiada entre un cliente y un servidor.The SslStream class is used to help secure information exchanged between a client and server.

Métodos de extensión

GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a