C# Класс Drey.CertificateValidation.SelfSignedServerCertificateValidation

Наследование: ICertificateValidation
Показать файл Открыть проект

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

Метод Описание
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