C# 클래스 Griffin.Net.Channels.ServerSideSslStreamBuilder

Used to build SSL streams for server side applications.
상속: ISslStreamBuilder
파일 보기 프로젝트 열기: jgauffin/Griffin.Framework 1 사용 예제들

공개 메소드들

메소드 설명
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