C# 클래스 Drey.CertificateValidation.SelfSignedServerCertificateValidation

상속: ICertificateValidation
파일 보기 프로젝트 열기: dealproc/Drey

공개 메소드들

메소드 설명
Initialize ( ) : void

Initializes the certificate validation callback.

SelfSignedServerCertificateValidation ( string thumbprint ) : Drey.Logging
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Validates the remote server's ssl certificate, to ensure we are connecting to the right signalr hub, etc.

메소드 상세

Initialize() 공개 메소드

Initializes the certificate validation callback.
public Initialize ( ) : void
리턴 void

SelfSignedServerCertificateValidation() 공개 메소드

public SelfSignedServerCertificateValidation ( string thumbprint ) : Drey.Logging
thumbprint string
리턴 Drey.Logging

ValidateServerCertificate() 공개 메소드

Validates the remote server's ssl certificate, to ensure we are connecting to the right signalr hub, etc.
public ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object The sender.
certificate System.Security.Cryptography.X509Certificates.X509Certificate The certificate.
chain System.Security.Cryptography.X509Certificates.X509Chain The chain.
sslPolicyErrors SslPolicyErrors The SSL policy errors.
리턴 bool