C# Класс Griffin.Net.Channels.ServerSideSslStreamBuilder

Used to build SSL streams for server side applications.
Наследование: ISslStreamBuilder
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Build ( ITcpChannel channel, Socket socket ) : SslStream

Build a new SSL steam.

ServerSideSslStreamBuilder ( X509Certificate certificate, SslProtocols allowedProtocols = SslProtocols.Tls12 ) : System

Initializes a new instance of the ServerSideSslStreamBuilder class.

Защищенные методы

Метод Описание
OnRemoteCertifiateValidation ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors ) : bool

Works just like the callback for SslStream

Описание методов

Build() публичный Метод

Build a new SSL steam.
public Build ( ITcpChannel channel, Socket socket ) : SslStream
channel ITcpChannel Channel which will use the stream
socket System.Net.Sockets.Socket Socket to wrap
Результат System.Net.Security.SslStream

OnRemoteCertifiateValidation() защищенный Метод

Works just like the callback for SslStream
protected OnRemoteCertifiateValidation ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslpolicyerrors SslPolicyErrors
Результат bool

ServerSideSslStreamBuilder() публичный Метод

Initializes a new instance of the ServerSideSslStreamBuilder class.
certificate
public ServerSideSslStreamBuilder ( X509Certificate certificate, SslProtocols allowedProtocols = SslProtocols.Tls12 ) : System
certificate System.Security.Cryptography.X509Certificates.X509Certificate The certificate.
allowedProtocols SslProtocols Which protocols to support for HTTPS. By default only Tls 1.2 is allowed (most secure)
Результат System