C# Class Drey.CertificateValidation.SelfSignedServerCertificateValidation

Inheritance: ICertificateValidation
Afficher le fichier Open project: dealproc/Drey

Méthodes publiques

Méthode 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 méthode

Initializes the certificate validation callback.
public Initialize ( ) : void
Résultat void

SelfSignedServerCertificateValidation() public méthode

public SelfSignedServerCertificateValidation ( string thumbprint ) : Drey.Logging
thumbprint string
Résultat Drey.Logging

ValidateServerCertificate() public méthode

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.
Résultat bool