C# Class RabbitMQ.Client.SslHelper

Represents an SslHelper which does the actual heavy lifting to set up an SSL connection, using the config options in an SslOption to make things cleaner
显示文件 Open project: rabbitmq/rabbitmq-dotnet-client Class Usage Examples

Public Methods

Method Description
TcpUpgrade ( Stream tcpStream, SslOption sslOption ) : Stream

Upgrade a Tcp stream to an Ssl stream using the SSL options provided.

Private Methods

Method Description
CertificateSelectionCallback ( object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string acceptableIssuers ) : X509Certificate
CertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
SslHelper ( SslOption sslOption ) : System

Method Details

TcpUpgrade() public static method

Upgrade a Tcp stream to an Ssl stream using the SSL options provided.
public static TcpUpgrade ( Stream tcpStream, SslOption sslOption ) : Stream
tcpStream Stream
sslOption SslOption
return Stream