C# Class Drey.CertificateValidation.SelfSignedServerCertificateValidation

Inheritance: ICertificateValidation
Exibir arquivo Open project: dealproc/Drey

Public Methods

Method Description
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.

Method Details

Initialize() public method

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

SelfSignedServerCertificateValidation() public method

public SelfSignedServerCertificateValidation ( string thumbprint ) : Drey.Logging
thumbprint string
return Drey.Logging

ValidateServerCertificate() public method

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.
return bool