C# 클래스 NodeNetAsync.Net.Https.HttpsServer

파일 보기 프로젝트 열기: soywiz/NodeNetAsync 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
DefaultX509Certificate System.Security.Cryptography.X509Certificates.X509Certificate2
HostCertificates X509Certificate2>.Dictionary

공개 메소드들

메소드 설명
AddCertificateForHost ( string Host, string PublicCertificateString, string PrivateKeyString, string Password = "" ) : void

AddDefaultCertificate ( string PublicCertificateString, string PrivateKeyString, string Password = "" ) : void

GetCertificateFromPEMstring ( string PublicCertificateString, string PrivateKeyString, string Password ) : X509Certificate2
HttpsServer ( X509Certificate2 X509Certificate ) : System

HttpsServer ( string PublicCertificateString, string PrivateKeyString, string Password = "" ) : System

ListenAsync ( ushort Port = 443, string Host = "0.0.0.0" ) : System.Threading.Tasks.Task

보호된 메소드들

메소드 설명
InitializeConnectionAsync ( TcpSocket Client ) : System.Threading.Tasks.Task
ReadHeadersAsync ( TcpSocket Client, HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
AlignBytes ( byte inputBytes, int alignSize ) : byte[]

DecodeIntegerSize ( System rd ) : int

This helper function parses an integer size from the reader using the ASN.1 format

DecodeRsaPrivateKey ( byte PrivateKeyBytes ) : RSACryptoServiceProvider

This helper function parses an RSA private key using the ASN.1 format

GetBytesFromPEM ( string PemString, PemStringType Type ) : byte[]

메소드 상세

AddCertificateForHost() 공개 메소드

public AddCertificateForHost ( string Host, string PublicCertificateString, string PrivateKeyString, string Password = "" ) : void
Host string
PublicCertificateString string String containing -----BEGIN CERTIFICATE-----
PrivateKeyString string String containing -----BEGIN RSA PRIVATE KEY-----
Password string Password of the private key
리턴 void

AddDefaultCertificate() 공개 메소드

public AddDefaultCertificate ( string PublicCertificateString, string PrivateKeyString, string Password = "" ) : void
PublicCertificateString string String containing -----BEGIN CERTIFICATE-----
PrivateKeyString string String containing -----BEGIN RSA PRIVATE KEY-----
Password string Password of the private key
리턴 void

GetCertificateFromPEMstring() 공개 정적인 메소드

public static GetCertificateFromPEMstring ( string PublicCertificateString, string PrivateKeyString, string Password ) : X509Certificate2
PublicCertificateString string
PrivateKeyString string
Password string
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

HttpsServer() 공개 메소드

public HttpsServer ( X509Certificate2 X509Certificate ) : System
X509Certificate System.Security.Cryptography.X509Certificates.X509Certificate2
리턴 System

HttpsServer() 공개 메소드

public HttpsServer ( string PublicCertificateString, string PrivateKeyString, string Password = "" ) : System
PublicCertificateString string String containing -----BEGIN CERTIFICATE-----
PrivateKeyString string String containing -----BEGIN RSA PRIVATE KEY-----
Password string Password of the private key
리턴 System

InitializeConnectionAsync() 보호된 메소드

protected InitializeConnectionAsync ( TcpSocket Client ) : System.Threading.Tasks.Task
Client TcpSocket
리턴 System.Threading.Tasks.Task

ListenAsync() 공개 메소드

public ListenAsync ( ushort Port = 443, string Host = "0.0.0.0" ) : System.Threading.Tasks.Task
Port ushort
Host string
리턴 System.Threading.Tasks.Task

ReadHeadersAsync() 보호된 메소드

protected ReadHeadersAsync ( TcpSocket Client, HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task
Client TcpSocket
Request HttpRequest
Response HttpResponse
리턴 System.Threading.Tasks.Task

프로퍼티 상세

DefaultX509Certificate 보호되어 있는 프로퍼티

protected X509Certificate2,System.Security.Cryptography.X509Certificates DefaultX509Certificate
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

HostCertificates 보호되어 있는 프로퍼티

protected Dictionary HostCertificates
리턴 X509Certificate2>.Dictionary